weismat has asked for the wisdom of the Perl Monks concerning the following question:
Unfortunately $chall is always undef indicating a compression error. Given the sizes of $temp and $chall, I am already not sure about the reading of the data from the network for binary data - I have used recv sofar only with text - does recv also work for binary data?my $s=new IO::Socket::INET(PeerAddr => "$server", PeerPort => $port ); print $s "C\n";#ask for the challenge my $chall; my $status; my $status=$s->recv($temp, 1); $status=$s->recv($temp, 1024); $chall=Compress::Zlib::uncompress($chall);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Reading a GZIP network stream
by przemo (Scribe) on May 13, 2009 at 08:33 UTC | |
by weismat (Friar) on May 13, 2009 at 09:13 UTC | |
by lostjimmy (Chaplain) on May 13, 2009 at 13:23 UTC | |
|
Re: Reading a GZIP network stream
by Perlbotics (Archbishop) on May 13, 2009 at 18:52 UTC | |
by weismat (Friar) on May 14, 2009 at 13:06 UTC |