develooper Front page | perl.perl5.porters | Postings from January 2001

Re: socket/vec/select combination failing (Was OK: perl v5.7.0 +DEVEL8301 on i686-linux 2.4.0-prerelease-ac4)

Thread Previous
From:
andreas.koenig
Date:
January 3, 2001 11:38
Subject:
Re: socket/vec/select combination failing (Was OK: perl v5.7.0 +DEVEL8301 on i686-linux 2.4.0-prerelease-ac4)
Message ID:
m3hf3g5sus.fsf@ak-71.mind.de
>>>>> On Wed, 3 Jan 2001 13:43:23 -0500 (EST), Jay Rogers <jay@rgrs.com> said:

>> From: andreas.koenig@anima.de (Andreas J. Koenig)
>> DB<8> x sysread SOCK, $scalar, 128           
>> 0  undef

 > Hmmm... Try initializing $scalar to something other than
 > undef and then invoking sysread()

  DB<6> x $nfound = select($bitmask, '', '', 0)
0  1
  DB<7> $scalar = "."x128

  DB<8> x sysread SOCK, $scalar, 128 
0  undef
  DB<9> x $scalar
0  '................................................................................................................................'
  DB<10> x length $scalar
0  128


-- 
andreas

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About