Is this possible

From: Theo James (zippy_at_sanft.net)
Date: 09/14/04


Date: 13 Sep 2004 15:29:14 -0700

I am a newbie perl programmer and I have an idea for a perl program,
but I want to know if it is possible before I attempt to write it.
Here is what I need:

I have a client, talking to my server via TCP/IP to port 1234. The
client is creating many seperate conversations that are a simple
request/response pairing. All requests from the client go to port
1234. Here is how I would like it to flow:

(main loop)
Server.pl accepts connection on port 1234 ->
locks port 1234 from any other new connection ->
redirects conversation to lesser know port (ex. 2345) ->
calls subserver.pl on port 2345 to handle request response
conversation

as soon as Server.pl fires off subserver.pl ->
unblock port 1234 and allow another connection (main loop)->

subserver.pl handles all communications with client and upon
completion (or time out) imports Server.pl that port 2345 is avilabile
for communication and then dies (or optionally wait for Server.pl to
send another session to it).

I already know how to handle this conversation without multiple
threads. Everything I've read out there seems to tell me that this is
hard or impossible. Can this be done? If so, is this design the best
what to handle it? If so, can you give me the main functions I should
look into? If not, can you point me in a different direction (please,
not C!!!)

Any help would greatly be appreicated!

--Theo James



Relevant Pages

  • Re: interfaces lo:1 lo:2 lo:3? (for remote ssh tunnels)
    ... That's the problem tunneling (port forwarding) solves. ... >>can't get past the client firewall. ... > I don't understand why the server would be making the ... server initiates another connection to the client -- in this ...
    (Debian-User)
  • Re: Using Remote Desktop From an SBS Domain
    ... when you tried to RDP while attached directly to a port on your router? ... So if 3389 needs forwarded on the client end too then that is what the ... Hopefully next week I can attempt a connection while my ISP watches the ...
    (microsoft.public.windows.server.sbs)
  • RE: Telnet/ftp problems SBS2000
    ... Please make sure your client computers are configured as both Firewall ... will find two options "Enable folder view for FTP sites" and "Use Passive ... that the control connection has been successfully established, ... (other than port 21) ...
    (microsoft.public.windows.server.sbs)
  • Re: One workstation cant access email from ISP - CROSSPOST
    ... Remove or disable the ISA Firewall client. ... Ethernet adapter Wireless Network Connection: ... Switch is nothing more than a patch panel; ... port - same result. ...
    (microsoft.public.exchange.admin)
  • Re: Processs PreciseMail AntiSpam Gateway - any experience so far ?
    ... >> another machine or port on the user's home network. ... >> connection to an external machine having been made or by the user explicitly ... > use a well-known port that the NAT firewall forwards to the client ...
    (comp.os.vms)