include: updated uv_udp_open documentation
On Unix, uv_udp_open can be used with any socket as long as the socket follows the datagram contract (works in unconnected mode, supports sendmsg()/recvmsg(), etc.). This means that any datagram-socket, like for example netlink or raw sockets, can be used with libuv. Added this information to the documentation.
This commit is contained in:
parent
4a55522e9a
commit
1e8fe45995
@ -787,6 +787,12 @@ UV_EXTERN int uv_udp_init(uv_loop_t*, uv_udp_t* handle);
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Opens an existing file descriptor or SOCKET as a udp handle.
|
* Opens an existing file descriptor or SOCKET as a udp handle.
|
||||||
|
*
|
||||||
|
* Unix only:
|
||||||
|
* The only requirement of the sock argument is that it follows the
|
||||||
|
* datagram contract (works in unconnected mode, supports sendmsg()/recvmsg(),
|
||||||
|
* etc.). In other words, other datagram-type sockets like raw sockets or
|
||||||
|
* netlink sockets can also be passed to this function.
|
||||||
*/
|
*/
|
||||||
UV_EXTERN int uv_udp_open(uv_udp_t* handle, uv_os_sock_t sock);
|
UV_EXTERN int uv_udp_open(uv_udp_t* handle, uv_os_sock_t sock);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user