FS-7933 [mod_v8] Implement timeout property for Socket() class in javascript.

This commit is contained in:
Andrey Volk committed 2016-12-27 04:18:14 +03:00
1 parent ddf48b8602
commit 3f3cd7343b
4 files changed
+37 -1

No files matched your search

+5
View File
@@ -859,6 +859,11 @@ SWITCH_DECLARE(switch_status_t) switch_socket_opt_set(switch_socket_t *sock, int
return apr_socket_opt_set(sock, opt, on);
}
SWITCH_DECLARE(switch_status_t) switch_socket_timeout_get(switch_socket_t *sock, switch_interval_time_t *t)
{
return apr_socket_timeout_get(sock, t);
}
SWITCH_DECLARE(switch_status_t) switch_socket_timeout_set(switch_socket_t *sock, switch_interval_time_t t)
{
return apr_socket_timeout_set(sock, t);