Re: [zeromq-dev] P2P updates or another method?
On Thu, Mar 18, 2010 at 3:26 AM, Martin Sustrik wrote: > Jeff, > >> I've been wanting to use 0MQ at work, but can't quite get the behavior >> I want. I think I want P2P type connections, but run into the lack of >> auto-connect code[1]. >> >> What I'm trying to get is for an application to send lots of messages >> and have those stored on a queue until a client connects and receives >> the messages. Is that handled best with P2P, or am I overlooking >> something else? > > Yes, P2P is in experimental stage and lacks auto-reconnect as for now. > > However, you can use DOWNSTREAM/UPSTREAM as a temporary substitute in your > scenario. Excellent! Thank you! Jeff > > Martin > ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev
Re: [zeromq-dev] C# interface for Zmq 2.x
On Thu, Mar 18, 2010 at 3:23 AM, Martin Sustrik wrote: > Hi Jeff, > >> I made some C# bindings a few weeks ago, but just committed it and >> pushed it: >> http://github.com/s450r1/zeromq2/blob/master/bindings/clr/Zmq.cs > > Nice! Can you attach a licnese to the code so that it can be used safely? > LGPL would be preferable. I knew I was forgetting something. LGPL it is, although it also keeps the same special exception as 0MQ. Jeff > >> However, it's only been tested to work with the 0MQ from a few weeks >> ago, before the language bindings were kicked out of the core 0MQ >> repository :-) I've been meaning to update it with the latest changes >> to 0MQ, but haven't had a chance yet (as I have 6 month old twin >> girls). > > Wow. Congratulations! > >> Feel free to use that as a starting point if you wish. >> There's a few examples in >> http://github.com/s450r1/zeromq2/tree/master/bindings/clr. See the >> Rakefile for how to build (or use rake[1] to build). >> >> [1]: http://rake.rubyforge.org/ > > Martin > ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev
[zeromq-dev] P2P updates or another method?
Hi, I've been wanting to use 0MQ at work, but can't quite get the behavior I want. I think I want P2P type connections, but run into the lack of auto-connect code[1]. What I'm trying to get is for an application to send lots of messages and have those stored on a queue until a client connects and receives the messages. Is that handled best with P2P, or am I overlooking something else? Thanks, Jeff [1]: http://www.mail-archive.com/zeromq-dev@lists.zeromq.org/msg00378.html ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev
Re: [zeromq-dev] C# interface for Zmq 2.x
Hi, I made some C# bindings a few weeks ago, but just committed it and pushed it: http://github.com/s450r1/zeromq2/blob/master/bindings/clr/Zmq.cs However, it's only been tested to work with the 0MQ from a few weeks ago, before the language bindings were kicked out of the core 0MQ repository :-) I've been meaning to update it with the latest changes to 0MQ, but haven't had a chance yet (as I have 6 month old twin girls). Feel free to use that as a starting point if you wish. There's a few examples in http://github.com/s450r1/zeromq2/tree/master/bindings/clr. See the Rakefile for how to build (or use rake[1] to build). [1]: http://rake.rubyforge.org/ Thanks, Jeff On Wed, Mar 17, 2010 at 6:41 AM, Martin Sustrik wrote: > Hi Alex, > >> Of coz I would like to tried it. >> But I know nth about c++ so tried to use SWIG to generate the C# >> interface last night and failed last night. >> >> Could you send me the binding for 1.0 so that I can port it to 2.0? > > Here's the code for C# binding in 0MQ/1.0: > > http://github.com/sustrik/zeromq1/blob/master/libclrzmq/zmq.cs > > As you can see it's pretty trivial code that does nothing but forward > each call to underlying C library. > > Here's the new 2.0 interface: > > http://github.com/sustrik/zeromq2/blob/master/include/zmq.h > > What has to be done: > > 1. Constants in zmq.h should be made avaiable in zmq.cs > 2. Functions from zmq.h should be declared as static extenal functions > in zmq.cs > 3. Simple C# wrapper should be written to provide a nice OO interface. > > Basically all the code can be found in the old binding, however, if you > run into problems, feel free to discuss it on the list. > > Martin > ___ > zeromq-dev mailing list > zeromq-dev@lists.zeromq.org > http://lists.zeromq.org/mailman/listinfo/zeromq-dev > ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev