jnr/jnr-unixsocket

Read response from server, Unix Datagram socket

Closed this issue · 1 comments

I'm using this lib to interact with hostapd through a unix datagram socket, the problem is that when I send a request to the server the server doesn't respond me and throw the error Transport endpoint is not connected on sendto function, if UnixDatagramChannel is in blocking mode when calling receive the code wait for something that doesn't come, if in non-blocking mode return 0

Resolved binding the socket to a local address so the server can respond because have the client address