Re: Win32::SerialPort and POE

Rocco Caputo <[email protected]>
Newsgroups gmane.comp.lang.perl.poe
Message-ID <[email protected]>
On Apr 10, 2008, at 13:23, Mark Swayne wrote:
> Does anybody have some working code using Win32::SerialPort with POE?
>
> I've tried to follow the example in the cookbook, but haven't been  
> able to get very far.  I injected a FILENO method.  Unfortunately, I  
> never seem to get any data from my comm port.  Is this due to the  
> broken socket-only select on Windows?

I believe so, yes.  Perl's select() is written using Windows' winsock  
library, which only multiplexes sockets. Your serial port is probably  
a device, so it's not eligible.

Cygwin-built Perl doesn't have this limitation, but I don't know  
whether Win32::SerialPort works there.

-- 
Rocco Caputo - [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.