[zeromq-dev] ZeroMQ on Windows Mobile

0 views
Skip to first unread message

Boris Gulay

unread,
Jan 25, 2012, 9:41:39 AM1/25/12
to zerom...@lists.zeromq.org
I have compiled library for Windows Mobile (using WM 5.0 SDK). I have to
replace some calls, and made other changes.

Library loads OK but network layer does not actually work for me. If I
try to send something with ZMQ_PUSH server does not receive anything. If
I change it to ZMQ_PULL my application crashes on bind call.

Can someone experienced help me running ZeroMQ on Windows Mobile? This
way we can add another platform to the list of already supported by 0MQ.

PS: On bind it fails because of the following line (tcp_listener.cpp:70):
rc = setsockopt (s, SOL_SOCKET, SO_EXCLUSIVEADDRUSE,
(const char*) &flag, sizeof (int));
It seems to me that sockets on WM does not support this option.

signature.asc

Martin Sustrik

unread,
Jan 25, 2012, 5:14:21 PM1/25/12
to ZeroMQ development list, Boris Gulay
Hi Boris,

> PS: On bind it fails because of the following line (tcp_listener.cpp:70):
> rc = setsockopt (s, SOL_SOCKET, SO_EXCLUSIVEADDRUSE,

> (const char*)&flag, sizeof (int));


> It seems to me that sockets on WM does not support this option.

You may try SO_REUSEADDR instad. It's #ifdef'd in tcp_listener.cpp
already so it's easy to test.

If none of the two work, you can disable setting this option on WM.

Martin
_______________________________________________
zeromq-dev mailing list
zerom...@lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Boris Gulay

unread,
Jan 27, 2012, 4:05:19 AM1/27/12
to ZeroMQ development list
26.01.2012 2:14, Martin Sustrik пишет:

> Hi Boris,
>
>> PS: On bind it fails because of the following line (tcp_listener.cpp:70):
>> rc = setsockopt (s, SOL_SOCKET, SO_EXCLUSIVEADDRUSE,
>> (const char*)&flag, sizeof (int));
>> It seems to me that sockets on WM does not support this option.
>
> You may try SO_REUSEADDR instad. It's #ifdef'd in tcp_listener.cpp
> already so it's easy to test.
>
> If none of the two work, you can disable setting this option on WM.
I've just put this call inside #if-#endif to exclude it on WM and it
works OK. Thank you.

signature.asc
Reply all
Reply to author
Forward
0 new messages