On 13/09/13 13:08, Paul Colomiets wrote:
Hi Martin, On Thu, Sep 12, 2013 at 4:53 PM, Martin Sustrik <sustrik@xxxxxxxxxx> wrote:Further, Windows' botched implementation of BSD socket API presents another problem. Yes, they have sockets and even the select() call, but it only works for TCP and UDP. If you want to integrate with something else (like NamedPipes) you have to use Windows-specific IOCP API. To be frank, it's not even obvious how .NET can be ported to UNIX platforms (mono) and still remain platform independent -- both platforms have conceptually incompatible polling mechanisms after all.My knowledge of windows is bad. But AFAIK, IOCP has callback-based API. You instead of NN_RCVFD, one may expect NN_RCVCALLBACK on windows. No?
That would make nanomsg API platform-dependent. I.e. application written on top of nanomsg under Linux won't work on Windows and vice versa :(
Martin