in reply to Re^2: No data received on client socket
in thread No data received on client socket
BR
# Simple echo server using POE framework (from CPAN) #!/usr/bin/perl use warnings; use strict; use POE qw(Component::Server::TCP); POE::Component::Server::TCP->new( Port => 12345, ClientInput => \&client_input, ); POE::Kernel->run(); exit; sub client_input { my ($heap, $input) = @_[ HEAP, ARG0 ]; print "[$$]: $input\n"; $heap->{client}->put($input); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: No data received on client socket
by rbi (Monk) on Sep 20, 2006 at 15:07 UTC | |
by ikegami (Patriarch) on Sep 20, 2006 at 15:19 UTC |