Re: Wait for first recv.

Rizwan Hisham <[email protected]> Thu, 28 Feb 2013 15:00:48 +0500
Newsgroups gmane.comp.lang.perl.poe
Message-ID <CA+ZGsge+OHWpFOiLTdro-BQbFnhnMxuAZJtWHpdwaUg+az6zxQ@mail.gmail.com>
--e0cb4efe2dbe480f4a04d6c5f896
Content-Type: text/plain; charset=ISO-8859-1

Just a thought.

You can devise a ping mechanism. Ping the other client, recieve PONG then
transmit the data. You will have to do it every time you transfer the data.


On Thu, Feb 28, 2013 at 2:46 PM, yakudzo <[email protected]> wrote:

> Hello POE guys,
>
> I used example poe.perl.org/?POE_Cookbook/**TCP_Forwarding<http://poe.perl.org/?POE_Cookbook/TCP_Forwarding>to create application that will connect two clients and will send/recv info
> between them. I need to send information between them only when both of
> them are connected so I need first listen on both ports and only when both
> are accepted I need to start recv info from them and send it to another.
> How can I do this?
>
> With best regards,
> Konstantin
>



-- 
Best Ragards
Rizwan H Qureshi

V: +92 (0) 3333 6767 26
linkedin.com/in/rhqureshi

--e0cb4efe2dbe480f4a04d6c5f896--