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?? |
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, 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.
In Section
Seekers of Perl Wisdom
|
|