1 #ifndef _OPENNET_H 2 #define _OPENNET_H 3 #include <sys/types.h> 4 #include <unistd.h> 5 6 7 int createlisten(int port); 8 void closeconnection(int sockfd); 9 int createconnection_tcp(char *host, int port); 10 int open_net(const char *pathname, int flags, ...); 11 off_t lseek_net(int filedes, off_t offset, int whence); 12 ssize_t read_net(int fd, void *buf, size_t count); 13 #endif |