Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Reading and writing sockets

by gbarr (Monk)
on Dec 11, 2001 at 17:59 UTC ( [id://130925]=note: print w/replies, xml ) Need Help??


in reply to Reading and writing sockets

First off, don't use read() and print(), they are stdio calls and are therefore subject to buffering. Instead use sysread() and syswrite().

To determine if there is anything to read use select() (see IO::Select)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (4)
As of 2024-04-16 16:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found