[zeromq-dev] failed to filter topic in pub/sub

Martin Sustrik sustrik at 250bpm.com
Wed Apr 7 20:34:59 CEST 2010


:)

Alex Yu wrote:
> Hi Martin,
> 
> Problem solved..
> I can add new subscribe and remove old subscribe in the runtime.
> 
> Thanks,
> Alex
> 
> -----Original Message-----
> From: Alex Yu [mailto:alexcwyu at gmail.com] 
> Sent: 08 April 2010 02:27
> To: 'Martin Sustrik'
> Cc: 'zeromq-dev at lists.zeromq.org'
> Subject: RE: [zeromq-dev] failed to filter topic in pub/sub
> 
> Hi Martin,
> 
> I am using your c# binding and have another question for pub/sub.
> 
> I create a subscriber to connect to the publisher. Can the subscriber in
> runtime change the topic subscriptions?
> e.g. s.SetSockOpt(ZMQ.SUBSCRIBE, XXX); s.SetSockOpt(ZMQ.SUBSCRIBE, YYY);
> 
> after the socket is created and connected?
> 
> Regards,
> Alex
> 
> -----Original Message-----
> From: Martin Sustrik [mailto:sustrik at 250bpm.com] 
> Sent: 21 March 2010 04:34
> To: Alex Yu
> Cc: zeromq-dev at lists.zeromq.org
> Subject: Re: [zeromq-dev] failed to filter topic in pub/sub
> 
> Alex,
> 
>> I tried Jeff version and your version and can't get them work.
> 
> I cannot answer for the Jeff's version. However, for my version the 
> SetSockOpt takes a simple string as a parameter:
> 
> s.SetSockOpt(ZMQ.SUBSCRIBE, "");
> 
> For an example, have a look here:
> 
> http://github.com/sustrik/clrzmq/blob/master/local_thr/local_thr.cs
> 
> Martin
>  
> 
> __________ Information from ESET NOD32 Antivirus, version of virus signature
> database 4961 (20100320) __________
> 
> The message was checked by ESET NOD32 Antivirus.
> 
> http://www.eset.com
>  
>  
> 
> __________ Information from ESET NOD32 Antivirus, version of virus signature
> database 5008 (20100407) __________
> 
> The message was checked by ESET NOD32 Antivirus.
> 
> http://www.eset.com
>  
>  
> 
> __________ Information from ESET NOD32 Antivirus, version of virus signature
> database 5008 (20100407) __________
> 
> The message was checked by ESET NOD32 Antivirus.
> 
> http://www.eset.com
>  
> 




More information about the zeromq-dev mailing list