2 * $Id: netddp.h,v 1.3 2002-02-07 23:35:49 srittau Exp $
4 * Copyright (c) 1999 Adrian Sun (asun@zoology.washington.edu)
5 * All Rights Reserved. See COPYRIGHT.
7 * this provides a generic interface to the ddp layer. with this, we
8 * should be able to interact with any appletalk stack that allows
9 * direct access to the ddp layer. right now, only os x server's ddp
10 * layer and the generic socket based interfaces are understood.
13 #ifndef _ATALK_NETDDP_H
14 #define _ATALK_NETDDP_H 1
16 #include <sys/types.h>
17 #include <sys/cdefs.h>
18 #include <sys/socket.h>
19 #include <netatalk/at.h>
21 extern int netddp_open __P((struct sockaddr_at *, struct sockaddr_at *));
23 #if !defined(NO_DDP) && defined(MACOSX_SERVER)
24 extern int netddp_sendto __P((int, void *, size_t, unsigned int,
25 const struct sockaddr *, unsigned int));
26 extern int netddp_recvfrom __P((int, void *, int, unsigned int,
27 struct sockaddr *, unsigned int *));
28 #define netddp_close(a) ddp_close(a)
31 #include <sys/types.h>
33 #define netddp_close(a) close(a)
34 #define netddp_sendto sendto
35 #define netddp_recvfrom recvfrom