in reply to Trying to get started with IO::Multiplex
You answered your own question. They must be the same.
Sockets are bidirectional, but if the programs setup additional sockets, it should be invisible to you, the end user. See Simple bi-directional forking commandline client. What is usually done, is a forked or threaded client is used, one fork for reading the socket, the other for writing.
Why are you using IO::Multiplex? IO::Select is not hard. See Problem with IO::Select for example.
Also see perl socket examples for a basic intro to how it all works without IO::Multiplex. Look at IO Multiplexing server
Those examples explain the details, but it is often easier to use modules like IO::Select and IO::Socket instead of the raw Perl functions, and you can google for many code snippets previously posted.
Good luck.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Trying to get started with IO::Multiplex
by Bruce32903 (Scribe) on Jan 16, 2011 at 16:05 UTC |