Lines Matching refs:c

4 :c:type:`uv_udp_t` --- UDP handle
13 .. c:type:: uv_udp_t
17 .. c:type:: uv_udp_send_t
21 .. c:enum:: uv_udp_flags
23 Flags used in :c:func:`uv_udp_bind` and :c:type:`uv_udp_recv_cb`..
84 .. c:type:: void (*uv_udp_send_cb)(uv_udp_send_t* req, int status)
86 Type definition for callback passed to :c:func:`uv_udp_send`, which is
89 .. c:type:: void (*uv_udp_recv_cb)(uv_udp_t* handle, ssize_t nread, const uv_buf_t* buf, const stru…
91 Type definition for callback passed to :c:func:`uv_udp_recv_start`, which
100 * `buf`: :c:type:`uv_buf_t` with the received data.
123 .. c:enum:: uv_membership
138 .. c:member:: size_t uv_udp_t.send_queue_size
143 .. c:member:: size_t uv_udp_t.send_queue_count
147 .. c:member:: uv_udp_t* uv_udp_send_t.handle
151 .. seealso:: The :c:type:`uv_handle_t` members also apply.
157 .. c:function:: int uv_udp_init(uv_loop_t* loop, uv_udp_t* handle)
162 .. c:function:: int uv_udp_init_ex(uv_loop_t* loop, uv_udp_t* handle, unsigned int flags)
166 If the specified domain is ``AF_UNSPEC`` no socket is created, just like :c:func:`uv_udp_init`.
176 .. c:function:: int uv_udp_open(uv_udp_t* handle, uv_os_sock_t sock)
192 .. c:function:: int uv_udp_bind(uv_udp_t* handle, const struct sockaddr* addr, unsigned int flags)
197 :c:func:`uv_udp_init`.
221 .. c:function:: int uv_udp_connect(uv_udp_t* handle, const struct sockaddr* addr)
231 :c:func:`uv_udp_init`.
240 .. c:function:: int uv_udp_getpeername(const uv_udp_t* handle, struct sockaddr* name, int* namelen)
246 :c:func:`uv_udp_init` and bound.
259 .. c:function:: int uv_udp_getsockname(const uv_udp_t* handle, struct sockaddr* name, int* namelen)
264 :c:func:`uv_udp_init` and bound.
275 .. c:function:: int uv_udp_set_membership(uv_udp_t* handle, const char* multicast_addr, const char*…
280 :c:func:`uv_udp_init`.
290 .. c:function:: int uv_udp_set_source_membership(uv_udp_t* handle, const char* multicast_addr, cons…
295 :c:func:`uv_udp_init`.
309 .. c:function:: int uv_udp_set_multicast_loop(uv_udp_t* handle, int on)
315 :c:func:`uv_udp_init_ex` as either ``AF_INET`` or ``AF_INET6``, or have
316 been bound to an address explicitly with :c:func:`uv_udp_bind`, or
317 implicitly with :c:func:`uv_udp_send()` or :c:func:`uv_udp_recv_start`.
323 .. c:function:: int uv_udp_set_multicast_ttl(uv_udp_t* handle, int ttl)
328 :c:func:`uv_udp_init_ex` as either ``AF_INET`` or ``AF_INET6``, or have
329 been bound to an address explicitly with :c:func:`uv_udp_bind`, or
330 implicitly with :c:func:`uv_udp_send()` or :c:func:`uv_udp_recv_start`.
336 .. c:function:: int uv_udp_set_multicast_interface(uv_udp_t* handle, const char* interface_addr)
341 :c:func:`uv_udp_init_ex` as either ``AF_INET`` or ``AF_INET6``, or have
342 been bound to an address explicitly with :c:func:`uv_udp_bind`, or
343 implicitly with :c:func:`uv_udp_send()` or :c:func:`uv_udp_recv_start`.
349 .. c:function:: int uv_udp_set_broadcast(uv_udp_t* handle, int on)
354 :c:func:`uv_udp_init_ex` as either ``AF_INET`` or ``AF_INET6``, or have
355 been bound to an address explicitly with :c:func:`uv_udp_bind`, or
356 implicitly with :c:func:`uv_udp_send()` or :c:func:`uv_udp_recv_start`.
362 .. c:function:: int uv_udp_set_ttl(uv_udp_t* handle, int ttl)
367 :c:func:`uv_udp_init_ex` as either ``AF_INET`` or ``AF_INET6``, or have
368 been bound to an address explicitly with :c:func:`uv_udp_bind`, or
369 implicitly with :c:func:`uv_udp_send()` or :c:func:`uv_udp_recv_start`.
375 .. c:function:: int uv_udp_send(uv_udp_send_t* req, uv_udp_t* handle, const uv_buf_t bufs[], unsign…
378 with :c:func:`uv_udp_bind` it will be bound to 0.0.0.0
394 :c:func:`uv_udp_init`.
412 .. c:function:: int uv_udp_try_send(uv_udp_t* handle, const uv_buf_t bufs[], unsigned int nbufs, co…
414 Same as :c:func:`uv_udp_send`, but won't queue a send request if it can't
429 .. c:function:: int uv_udp_recv_start(uv_udp_t* handle, uv_alloc_cb alloc_cb, uv_udp_recv_cb recv_c…
432 with :c:func:`uv_udp_bind` it is bound to 0.0.0.0 (the "all interfaces"
436 :c:func:`uv_udp_init`.
454 :c:func:`uv_udp_init_ex`.
455 .. versionchanged:: 1.39.0 :c:func:`uv_udp_using_recvmmsg` can be used in `alloc_cb` to
459 .. c:function:: int uv_udp_using_recvmmsg(uv_udp_t* handle)
466 .. c:function:: int uv_udp_recv_stop(uv_udp_t* handle)
471 :c:func:`uv_udp_init`.
475 .. c:function:: size_t uv_udp_get_send_queue_size(const uv_udp_t* handle)
481 .. c:function:: size_t uv_udp_get_send_queue_count(const uv_udp_t* handle)
487 .. seealso:: The :c:type:`uv_handle_t` API functions also apply.