|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T d
Length: 772 (0x304) Types: TextFile Names: »defs.h«
└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987 └─⟦this⟧ »EUUGD18/General/Hearts/defs.h«
#include <sys/types.h> #include <sys/socket.h> #include <sys/file.h> #include <netinet/in.h> #include <netdb.h> #ifndef NULL #define NULL 0 #endif #define SLEN 40 /* short string */ #define PROTO "tcp" /* protocol */ #define SERVICE "hearts" /* official service name */ #ifdef FD_SETSIZE #define WIDTH FD_SETSIZE typedef fd_set fd_type; #define fd_init(sock, fds) FD_ZERO(fds); FD_SET(sock, fds) #define fd_set(sock, fds) FD_SET(sock, fds) #define fd_zero(sock, fds) FD_ZERO(sock, fds) #define fd_isset(sock, fds) FD_ISSET(sock, &fds) #else #define WIDTH 32 typedef int fd_type; #define fd_init(sock, fds) *fds = 1 << sock #define fd_set(sock, fds) *fds |= 1 << sock #define fd_zero(sock, fds) *fds = 0 #define fd_isset(sock, fds) fds & (1 << sock) #endif