add func
This commit is contained in:
parent
b1cf5bee30
commit
f4916c44b7
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue