Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

IO::Socket::UNIX close() discards data when called "too soon"?

by ddzeko (Acolyte)
on Jan 20, 2004 at 14:09 UTC ( [id://322586]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use IO::Socket::UNIX;
    ...
      my ($l) = <$fh>;
      return uc($l);
    }
    
  2. or download this
    #!/usr/bin/perl -w
    use IO::Socket::UNIX;
    ...
    
    # shut down reading side
    $usock->shutdown(0);
    
  3. or download this
    my $linger = pack('ii', 1, 120); # BSD struct 
    $usock->sockopt(SO_LINGER, $linger);
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://322586]
Approved by pfaut
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2024-04-19 08:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found