Make sure that tcp_server is listening
Marc Lehmann
schmorp at schmorp.de
Thu Mar 1 10:21:42 CET 2012
On Wed, Feb 29, 2012 at 03:11:30PM -0800, Mike Schilli <anyevent at perlmeister.com> wrote:
> tcp_server undef, 8888, sub { ... }, sub { tcp_connect(...) };
>
> since tcp_connect() will bomb at this point because there's no server.
right, but you can simply call tcp_connect after tcp_server returns.
--
The choice of a Deliantra, the free code+content MORPG
-----==- _GNU_ http://www.deliantra.net
----==-- _ generation
---==---(_)__ __ ____ __ Marc Lehmann
--==---/ / _ \/ // /\ \/ / schmorp at schmorp.de
-=====/_/_//_/\_,_/ /_/\_\
More information about the anyevent
mailing list