This commit is contained in:
Anthony Minessale 2011-06-09 15:42:09 -05:00
parent b1cf5bee30
commit f4916c44b7
1 changed files with 9 additions and 0 deletions

View File

@ -716,6 +716,15 @@ SWITCH_DECLARE(switch_status_t) switch_socket_send(switch_socket_t *sock, const
return status;
}
SWITCH_DECLARE(switch_status_t) switch_socket_send_nonblock(switch_socket_t *sock, const char *buf, switch_size_t *len)
{
if (!sock || !buf || !len) {
return SWITCH_STATUS_GENERR;
}
return apr_socket_send(sock, buf, len);
}
SWITCH_DECLARE(switch_status_t) switch_socket_sendto(switch_socket_t *sock, switch_sockaddr_t *where, int32_t flags, const char *buf,
switch_size_t *len)
{