]> arthur.barton.de Git - netatalk.git/blob - include/atalk/netddp.h
Big configure.in cleanup
[netatalk.git] / include / atalk / netddp.h
1 /*
2  * Copyright (c) 1999 Adrian Sun (asun@zoology.washington.edu)
3  * All Rights Reserved. See COPYRIGHT.
4  *
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.  
9  */
10
11 #ifndef _ATALK_NETDDP_H
12 #define _ATALK_NETDDP_H 1
13
14 #include <sys/types.h>
15 #include <sys/socket.h>
16 #include <netatalk/at.h>
17
18 extern int netddp_open   (struct sockaddr_at *, struct sockaddr_at *);
19
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)
26 #else
27 #include <unistd.h>
28 #include <sys/types.h>
29
30 #define netddp_close(a)  close(a)
31 #define netddp_sendto    sendto
32 #define netddp_recvfrom  recvfrom
33 #endif
34
35 #endif /* netddp.h */
36