Click here to get back home

tie and tie with IO::Multiplex and Device:SerialPort?

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
tie and tie with IO::Multiplex and Device:SerialPort? Ekki Plicht (DF4OR) 03-11-2007
Posted by Ekki Plicht (DF4OR) on March 11, 2007, 10:55 am
Please log in for more thread options


Hi.

My intention is to write a multi-client server for a serial attached device
which supports several streams at once. So IO::Multiplex (or Net::Server,
which uses (among others) IO::Multiplex) is a natural choice.

IO::Multiplex uses tied file handles to select() if ready. That's fine for
sockets, but what about the serial port which I would like to see handled
through IO::Multiplex as well?

Now Device::SerialPort also uses (can use) the serial device with a tied
filehandle.

My question: What happens if I pass the already tied file handle from
Device::SerialPort to IO::Multiplex, which ties it again? Will that work?

What I did so far, to find out
- read the docs and the camel book on Tie over and over, I have zero
experience with tied variables.

What I did not do
- Simply try it out. I fear that it would take quite some time to set up a
test case only to find out that it does not work. So I am asking here.

Thanks for any insights.

Ekki/Germany




Similar ThreadsPosted
Loopback with Device::SerialPort? March 18, 2005, 1:24 pm
problem with Device::SerialPort November 30, 2005, 4:19 pm
Problems with Device-SerialPort May 4, 2006, 2:15 pm
Help compiling Device::SerialPort May 9, 2006, 9:50 am
device::serial October 2, 2007, 1:46 pm
Device::Gsm v1.34 released to CPAN August 18, 2004, 8:53 am
registering name Device::Cdio February 8, 2006, 6:30 pm
Device::Gsm v1.43 released to CPAN July 23, 2006, 11:54 am
Device::Modem v1.39 released to CPAN August 18, 2004, 8:49 am
How to control SCSI device in win32?? November 11, 2004, 4:25 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap