[Chicago-talk] PLESE HELP. TCP server.
Richard Reina
richard at rushlogistics.com
Tue Jul 19 10:08:41 PDT 2005
--- Greg Fast <gdf at speakeasy.net> wrote:
> 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).
>
Any ideas on how can I fix it?
> Also, is there a reason you're using send/recv
> instead of print/<>?
>
>
Because I have no clue what I'm doing.
Thanks for the help.
A people that values its privileges above its principles soon loses both.
-Dwight D. Eisenhower.
More information about the Chicago-talk
mailing list