Nick,

For what it's worth, an unoptimized 0MQ stack is relatively simple.
The different socket types come down to:

- outbound routing: unicast (round-robin) (DEALER/PUSH), request
(REQ), reply (REP) broadcast (PUB), explicit (ROUTER), single (PAIR),
none (PULL, SUB)
- accepts incoming messages yes/no?

You can hardcode the strategies for the different outbound routing
mechanisms, and then it comes down to taking a message from the app,
and routing it out.

Then, you may (optionally) manage outbound connections for sockets (or
limit to one per socket if that's all you need). And if you need it,
manage incoming connections on listening sockets.

Look at the Bash stack - 1 line - for a minimal example.

-Pieter

On Mon, Jan 2, 2012 at 8:03 AM, Nick Talbot <[email protected]> wrote:
> Thanks Ian, that sounds like a starting point for me. As you say, I may be
> able to implement a simple client, and just support a server implementation
> on WinPhone.
>
> Thanks again,
> Nick
>
> Sent from my iPhone
>
> On 2 Jan 2012, at 12:42, Ian Barber <[email protected]> wrote:
>
>
>
> On Mon, Jan 2, 2012 at 12:37 PM, Nick Talbot <[email protected]> wrote:
>>
>> Hi Martin,
>>
>> Raw TCP sockets *are* available in Windows Phone 7, but only in C#, not
>> C/C++. Windows Phone 7 is a sandbox system that only allows managed code,
>> not raw C/C++ (which is why the zeromq libraries can't be used)
>>
>> So can I write some code to connect a C# normal socket to a Zeromq socket?
>>
>> Thanks,
>> Nick
>>
>
> You can implement the ZeroMQ protocol (http://rfc.zeromq.org/spec:15)
> directly, so you don't get the benefits of the library, but you can at least
> talk to the serverĀ  - that's why Martin was pointing you towards the
> Javascript, not because of the method it got to the socket, but because they
> had implemented the protocol themselves over that socket. Doesn't sound like
> there are any other options for windows phones at the moment.
>
> Ian
>
> _______________________________________________
>
> zeromq-dev mailing list
> [email protected]
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
>
> _______________________________________________
> zeromq-dev mailing list
> [email protected]
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to