#ifndef SOCKET_SIGNAL_H #define SOCKET_SIGNAL_H #include #ifndef sighandler_t typedef void (*sighandler_t)(int); #endif int Accept(int s, struct sockaddr *addr, socklen_t *addrlen, unsigned int sec); int Connect(int sockfd, const struct sockaddr *serv_addr, socklen_t addrlen, unsigned int sec); int Send(int s, const void *msg, size_t len, int flags, unsigned int sec); int Recv(int s, void *buf, size_t len, int flags, unsigned int sec); #endif