Add sock_set_timeout()

This commit is contained in:
2022-12-31 01:29:36 +01:00
parent 96f3225f51
commit 1547805e4c
4 changed files with 25 additions and 15 deletions

@ -32,6 +32,10 @@ int sock_enc_error(sock *s);
const char *sock_strerror(sock *s);
int sock_set_timeout_micros(sock *s, long recv_micros, long send_micros);
int sock_set_timeout(sock *s, int sec);
long sock_send(sock *s, void *buf, unsigned long len, int flags);
long sock_recv(sock *s, void *buf, unsigned long len, int flags);