diff options
author | Youness Alaoui <youness.alaoui@collabora.co.uk> | 2014-04-25 06:40:40 -0400 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2014-05-17 00:22:36 -0400 |
commit | dfba87d08e88ad5f82153b91e61e1dc1be409f42 (patch) | |
tree | 46b3e1d374a7233bc3b1552e9440530880836850 /socket/udp-bsd.c | |
parent | fbd586044c8d6df00928691ee2b4c5d915afead4 (diff) | |
download | libnice-dfba87d08e88ad5f82153b91e61e1dc1be409f42.tar.gz |
Add a nice_socket_can_send and nice_socket_set_writable_callback APIs
Diffstat (limited to 'socket/udp-bsd.c')
-rw-r--r-- | socket/udp-bsd.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/socket/udp-bsd.c b/socket/udp-bsd.c index 7075d3f..304d945 100644 --- a/socket/udp-bsd.c +++ b/socket/udp-bsd.c @@ -64,6 +64,9 @@ static gint socket_send_messages (NiceSocket *sock, const NiceAddress *to, static gint socket_send_messages_reliable (NiceSocket *sock, const NiceAddress *to, const NiceOutputMessage *messages, guint n_messages); static gboolean socket_is_reliable (NiceSocket *sock); +static gboolean socket_can_send (NiceSocket *sock, NiceAddress *addr); +static void socket_set_writable_callback (NiceSocket *sock, + NiceSocketWritableCb callback, gpointer user_data); struct UdpBsdSocketPrivate { @@ -149,6 +152,8 @@ nice_udp_bsd_socket_new (NiceAddress *addr) sock->send_messages_reliable = socket_send_messages_reliable; sock->recv_messages = socket_recv_messages; sock->is_reliable = socket_is_reliable; + sock->can_send = socket_can_send; + sock->set_writable_callback = socket_set_writable_callback; sock->close = socket_close; return sock; @@ -309,3 +314,15 @@ socket_is_reliable (NiceSocket *sock) return FALSE; } +static gboolean +socket_can_send (NiceSocket *sock, NiceAddress *addr) +{ + return TRUE; +} + +static void +socket_set_writable_callback (NiceSocket *sock, + NiceSocketWritableCb callback, gpointer user_data) +{ +} + |