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/socket.h>
16 #include <netatalk/at.h>
18 extern int netddp_open (struct sockaddr_at *, struct sockaddr_at *);
20 #if !defined(NO_DDP) && defined(MACOSX_SERVER)
21 extern int netddp_sendto (int, void *, size_t, unsigned int,
22 const struct sockaddr *, unsigned int);
23 extern int netddp_recvfrom (int, void *, int, unsigned int,
24 struct sockaddr *, unsigned int *);
25 #define netddp_close(a) ddp_close(a)
28 #include <sys/types.h>
30 #define netddp_close(a) close(a)
31 #define netddp_sendto sendto
32 #define netddp_recvfrom recvfrom