#ifndef LIB_SOCKET_H #define LIB_SOCKET_H #include "streamfer.h" #include #include #include #include #include int socket_bind(string host_port_str); string sockaddr_string(const struct sockaddr *sockaddrp,socklen_t socklen); string socket_name(int socket_fd); int socket_accept(int listen_fd,function msgfunc); int socket_connect(const string &host_port_str,unsigned retries); #endif /* LIB_SOCKET_H */