in reply to Bi-directional communication between 2 clients and 1 server over a single socket

Do I need to use IO::Select somehow? I've contacted several sources (including perl.com and google) trying to figure out how to allow a server to deal with multiple clients and most of um seem to point to Select.
Yes, you need to either fork to handle each conversation, or use IO::Select (or the lower-level interfaces) to "thread" your interactions. There are examples in perlman:perlipc.

-- Randal L. Schwartz, Perl hacker

  • Comment on Re: Bi-directional communication between 2 clients and 1 server over a single socket

Replies are listed 'Best First'.
RE: Re: Bi-directional communication between 2 clients and 1 server over a single socket
by Anonymous Monk on Oct 10, 2000 at 07:58 UTC
    k, thanx...I ended up rewriting the code entirely... since I know I only have 2 connections, I didnt need the accept while loop...I just hard coded each socket read for each player...made the problem ten times easier.

    However, playing around with sockets and select, etc was quite an educational (and frustrating :> ) experience...

    Can't wait til my next socket project.

    Thanx to all of u that helped me w/ this project.

    Magius_AR