/* * network.h */ #ifndef NETWORK_H #define NETWORK_H 1 #include #ifndef WIN32 /* Sane systems */ typedef FILE * netcon_t; # define fgets_network fgets # define fputs_network fputs # define fclose_network fclose #else /* WIN32 */ struct netcon; typedef struct netcon *netcon_t; int fputs_network(const char *, netcon_t); char *fgets_network(char *, int, netcon_t); int fclose_network(netcon_t); #endif /* WIN32 */ netcon_t fopen_network(const char *name, int port, int is_write); #endif /* NETWORK_H */