[zeromq-dev] Zyre simple example - missing frame

Chandra chandra at fastmail.net
Thu Apr 26 17:34:39 CEST 2018


Just to update to share:

After adding at whispers.c  program 
  >> zyre_event_t *event = zyre_event_new (node); 
       zyre_whispers(node, zyre_event_peer_uuid (event),"%s", "Hello -
       Whisper message to listener..."); 
though in listener, i getting message of whisper , want to send back
message to whispers. seems something wrong/

while (true)
    {

    zmsg_t * msg = zyre_recv(node);
   
     if (streq (zyre_event_type (event),"ENTER"))
  
         {
            // If new peer, say hello to it and wait for it to answer us               zsys_info ("*[%s] Follower info",zyre_event_type
               (event));           *    zyre_whispers (node,zyre_event_peer_uuid (event),
                "Hello...Follower one ");** *          
    }
      
   Full listener code : https://pastebin.com/0jbDmEJ2

Trying to solve this last 2 days :( 
Any thoughts helpful.  Thanks for support and community spirit. 


With kindest regards,
Chandra

 
 
 
 
 
 
 
 


On Tue, Apr 24, 2018, at 23:29, Chandra wrote:
> Dear ZMQ community, 
> 
> Greetings ! 
> I trying to understand zyre with simple example take from net and
> trying to change it.  There is 2 programs. one is  Zyre_whisperer  and
> another is Zyre_listener.> 
> 1. First, Listener will start  with group name  for example - Listener
>    <Leader>  and wait for message from whisperer> 2.  Start whisperer with  whisperer <Leader>  to send some message to
>     Leader.  original program use UUID which works :) and i am trying
>     to send by group name.  It works i.e it send the  frames to
>     Listener  without the user message (Good evening)> Code: 
> Whisperer.c  -  https://pastebin.com/nX5TWR7Q
> Listener.c  -    https://pastebin.com/kB7ixUS7
> 
> *below is Output:  *
> *Missing frame from Whisperer  is the issue *
> 
> frame: ENTER 
> frame: E1F28B6CC9064459A94ADC2AD0E6EC9F
> frame: Follower1
> frame:
> frame: tcp://172.27.144.208:49153
> ------
> frame: EVASIVE
> frame: E1F28B6CC9064459A94ADC2AD0E6EC9F
> frame: Follower1
> ------
> frame: EXIT
> frame: E1F28B6CC9064459A94ADC2AD0E6EC9F
> frame: Follower1
> 
> Any advise/ thoughts will greatly helpful :)  Cheers!
> 
> With kindest regards,
> Chandra
> 
>  
>  
>  
>  
>  
>  
>  
>  
> 
> _________________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> https://lists.zeromq.org/mailman/listinfo/zeromq-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20180426/ce6c039d/attachment.htm>


More information about the zeromq-dev mailing list