mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-14 05:18:31 +00:00
add apr stub to get the real OS socket
This commit is contained in:
1 parent
f254f2a5fe
commit
f044f46250
3 files changed
+14
No files matched your search
@@ -665,6 +665,11 @@ SWITCH_DECLARE(switch_status_t) switch_thread_create(switch_thread_t ** new_thre
|
||||
|
||||
/* socket stubs */
|
||||
|
||||
SWITCH_DECLARE(switch_status_t) switch_os_sock_get(switch_os_socket_t *thesock, switch_socket_t *sock)
|
||||
{
|
||||
return apr_os_sock_get(thesock, sock);
|
||||
}
|
||||
|
||||
SWITCH_DECLARE(switch_status_t) switch_socket_addr_get(switch_sockaddr_t ** sa, switch_bool_t remote, switch_socket_t *sock)
|
||||
{
|
||||
return apr_socket_addr_get(sa, (apr_interface_e) remote, sock);
|
||||
|
||||
Reference in new issue
Block a user