#include // symbolic constants, sys svc protos #include // standard I/O library #include // utility function protos #include // error handling #include // char string functions #include // function prototypes like bzero, ... #include // gethostbyname #include // socket, bind, accept, connect, send, recv #include // socket address struct #include // same as sys/types.h, listen #include // prototypes like inet_ntoa static inline void Fatal(char *msg) { fprintf(stderr, "%s", msg); exit(1); } static inline void FatalPerror(char *msg) { perror(msg); exit(1); }