POLLHUP on windows after sendto
I am trying to integrate librist in my application, and I started development on windows. I am starting with the sending side, and found that it always resulted in the "Socket error!" message. After digging a little bit I found that the socket is not bound and then after the first "sendto" call "poll" reveals that the POLLHUP event is raised. If I add some code to bind the socket after it is created in "rist_create_socket" the sending seems to work and no events are raised.
According to documentation the "sendto" should in principle bind the socket implicitly, but apparently it is not working on my development systems. Perhaps this is different for Windows? I also noticed that binding to 0.0.0.0 does not work, and a explicit interface address is needed. For multicast and broadcast addresses no bind is required, and no POLLHUP event is raised.
Not sure if this is expected behavior and would very much appreciate it if anyone could share their perspective on this.
I am sorry if this is not the best place to ask about this. In this case please let me know where a better place would be and I will delete this issue.