RE: how to detect a disconnected socket?

2005-12-19 Thread John Serink
t: Monday, December 19, 2005 4:42 PM > To: John Serink > Cc: perl-win32-users@listserv.ActiveState.com > Subject: Re: how to detect a disconnected socket? > > > John Serink wrote: > > >Ok, if you're using sockets I strongly recommend you ALWAYS using > >sysread and

Re: how to detect a disconnected socket?

2005-12-19 Thread $Bill Luebkert
Foo Ji-Haw wrote: > Cool. Thanks for the tip John. When you mean partial reads, you don't > mean to say that any form of data corruption is taking place right? It's > just that I will have to be responsible for putting Humpty Dumpty (aka > the fragmented data) back together again? TCP is strea

Re: how to detect a disconnected socket?

2005-12-19 Thread Foo Ji-Haw
John Serink wrote: Ok, if you're using sockets I strongly recommend you ALWAYS using sysread and syswrite as they baypass standard IO buffereing. Be careful with sysread, it cand and will return partial reads, you MUST be prepared for that. Unless you want your program to block on sysread, you

RE: how to detect a disconnected socket?

2005-12-18 Thread John Serink
--Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Foo Ji-Haw > Sent: Monday, December 19, 2005 11:28 AM > To: perl-win32-users@listserv.ActiveState.com > Subject: how to detect a disconnected socket? > > > Hi all, I have the sa

how to detect a disconnected socket?

2005-12-18 Thread Foo Ji-Haw
Hi all, I have the same issue (see subject title) as Trever in the mailing list. Unfortunately reading through the mailing list archive it seems that his problem was not resolved. I'm hoping to have better luck with you guys. :) Basically, I need to know if my IO::Socket::INET socket connectio