/* * $Id: netddp.h,v 1.4 2009-10-13 22:55:37 didg Exp $ * * Copyright (c) 1999 Adrian Sun (asun@zoology.washington.edu) * All Rights Reserved. See COPYRIGHT. * * this provides a generic interface to the ddp layer. with this, we * should be able to interact with any appletalk stack that allows * direct access to the ddp layer. right now, only os x server's ddp * layer and the generic socket based interfaces are understood. */ #ifndef _ATALK_NETDDP_H #define _ATALK_NETDDP_H 1 #ifndef NO_DDP #include #include #include #include extern int netddp_open (struct sockaddr_at *, struct sockaddr_at *); #if !defined(NO_DDP) && defined(MACOSX_SERVER) extern int netddp_sendto (int, void *, size_t, unsigned int, const struct sockaddr *, unsigned int); extern int netddp_recvfrom (int, void *, int, unsigned int, struct sockaddr *, unsigned int *); #define netddp_close(a) ddp_close(a) #else #include #include #define netddp_close(a) close(a) #define netddp_sendto sendto #define netddp_recvfrom recvfrom #endif #endif /* NO_DDP */ #endif /* netddp.h */