TCP keepalive setting support

This commit is contained in:
Andrey (Stanson) Kozin
2016-02-08 08:28:41 +03:00
committed by Dmitry Podgorny
parent cb79f5c10b
commit 6c1c2a86f8
4 changed files with 60 additions and 0 deletions

View File

@@ -40,5 +40,6 @@ int sock_write(const sock_t sock, const void * const buff, const size_t len);
int sock_is_recoverable(const int error);
/* checks for an error after connect, return 0 if connect successful */
int sock_connect_error(const sock_t sock);
int sock_set_keepalive(const sock_t sock, int timeout, int interval);
#endif /* __LIBSTROPHE_SOCK_H__ */