freelanceprogrammers.org Forum Index » Perl
Check activity on socket
Joined: 07 Mar 2005
Posts: 6
Check activity on socket
Hi all!
I have a socket open and connected, right?
I need to check if a socket is receiving data. Itīs possible?
i see perldoc IO::Socket, but donīt find answers :(
Joined: 21 May 2004
Posts: 44
Check activity on socket
>>>>> "Garcia" == Garcia <garciajr@...> writes:
Garcia> Hi all!
Garcia> I have a socket open and connected, right?
Garcia> I need to check if a socket is receiving data. Itīs possible?
Garcia> i see perldoc IO::Socket, but donīt find answers :(
If you avoid all buffered reading (use sysread() rather than
read() or <HANDLE>), you can use select(), or IO::Select to get
notified when data is ready.
If you`re building a complex application that has to watch many ports,
check out POE (poe.perl.org) instead. Nice framework.
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@...> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
Booking Calendar - reservation calendar script
Land Surveying - total station instruments and equipments
China Wholesale - Electronics Products
Character Studio - Tutorials and Help
Booking Calendar - reservation calendar script
Land Surveying - total station instruments and equipments
China Wholesale - Electronics Products
Character Studio - Tutorials and Help







