2 * Copyright (c) 1999 Adrian Sun (asun@zoology.washington.edu)
3 * All Rights Reserved. See COPYRIGHT.
5 * this provides a generic interface to the ddp layer. with this, we
6 * should be able to interact with any appletalk stack that allows
7 * direct access to the ddp layer. right now, only os x server's ddp
8 * layer and the generic socket based interfaces are understood.
11 #ifndef _ATALK_NETDDP_H
12 #define _ATALK_NETDDP_H 1
14 #include <sys/types.h>
15 #include <sys/cdefs.h>
16 #include <sys/socket.h>
17 #include <netatalk/at.h>
19 extern int netddp_open __P((struct sockaddr_at *, struct sockaddr_at *));
21 #if !defined(NO_DDP) && defined(MACOSX_SERVER)
22 extern int netddp_sendto __P((int, void *, size_t, unsigned int,
23 const struct sockaddr *, unsigned int));
24 extern int netddp_recvfrom __P((int, void *, int, unsigned int,
25 struct sockaddr *, unsigned int *));
26 #define netddp_close(a) ddp_close(a)
29 #include <sys/types.h>
31 #define netddp_close(a) close(a)
32 #define netddp_sendto sendto
33 #define netddp_recvfrom recvfrom