Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: IO::Socket::INET what to use to read/write from socket?

by {NULE} (Hermit)
on May 29, 2002 at 15:54 UTC ( [id://170121]=note: print w/replies, xml ) Need Help??


in reply to IO::Socket::INET what to use to read/write from socket?

Hi,

To avoid buffered read and writes use sysread and syswrite. There is information on these in the IO::Socket and IO::Select perldoc. The big advantage of these is that you can do non-blocking access. The down-side is that they are a hair more complex.

An excellent source of all the networking that is Perl is Lincoln Stein's excellent Network Programming with Perl. You can figure this stuff out with just the perldoc, though.

Good luck,
{NULE}
--
http://www.nule.org

P.S. I'm at a training class all week so I don't have much opportunity to research my posts as well as I normally do. Forgive me for not providing links to all of the things that I mention here.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (1)
As of 2024-04-18 23:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found