in reply to Send file(s) via socket

I think you will need multiplexing, so that when multiple connection co-exist, they will all appear to get a timely response. Take a look at IO::Select.

Also, better have timeout defined for your socket, so that you can transfer files, and at the same time, periodically check for new connections through accept(), and accept() will no longer block the process (infinitely).

Replies are listed 'Best First'.
Re: Re: Send file(s) via socket
by rupesh (Hermit) on Jan 22, 2004 at 07:59 UTC
    Yes.. I was thinking of IO::Select as well, though I don't have much experience with it, Ill give it a shot.
    Are you suggesting me to use IO::Select with Net::TCP::Server as Roger had suggested? If so, could you please give me an example?
    Thanks...