[Chicago-talk] PLESE HELP. TCP server.

Greg Fast gdf at speakeasy.net
Tue Jul 19 09:37:01 PDT 2005

On Tue, Jul 19, 2005 at 09:09:11AM -0700, Richard Reina wrote:
>    my ($port, $packed_ip) =
>    sockaddr_in($client_address);
>    print "port: " . $port . "Packed IP: " . $packed_ip . "\n";

This is my guess for the culprit: the value of $packed_ip is a binary
structure, and isn't suitable for printing (sockaddr_in basically just
returns the C struct).

Also, is there a reason you're using send/recv instead of print/<>?

Greg Fast
gdf at speakeasy.net

More information about the Chicago-talk mailing list