On Sun, Jun 12, 2016 at 9:00 AM, zhengfish <[email protected]> wrote:
> Hello,
>     I want to program netlink connection with libuv.
>     I don't found any example besides there is one line text in
> documentation here:
> ./docs/src/udp.rst:129:    In other words, other datagram-type sockets like
> raw sockets or netlink
>
>     Then I tried to modify this ./test/test-udp-open.c example to support
> netlink socket, however while it will assert at:
>     r = uv_udp_bind ( &client, ( const struct sockaddr* ) &addr, 0 );
>     ASSERT ( r == 0 );
>
>     I don't know whether libuv can support netlink programming.
>     Do you have any idea or advice?
>
> Thanks in advance.
>
> zhengfish

You can create the netlink socket yourself with socket(AF_NETLINK),
then hand it off to uv_poll_init().

-- 
You received this message because you are subscribed to the Google Groups 
"libuv" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/libuv.
For more options, visit https://groups.google.com/d/optout.

Reply via email to