Add sock_init()

This commit is contained in:
2023-01-23 23:35:53 +01:00
parent 1e0a7c95da
commit 5f3ba2b971
4 changed files with 15 additions and 6 deletions

@ -33,6 +33,8 @@ void sock_error(sock *s, int ret);
const char *sock_error_str(unsigned long err);
int sock_init(sock *s, int fd, int enc);
int sock_set_socket_timeout_micros(sock *s, long recv_micros, long send_micros);
int sock_set_socket_timeout(sock *s, double sec);