Re: Several server apps at same port in same machine? Just confirm whether my assumptions are true...
From: Dave Lowther (davel_at_snsys.com)
Date: 03/25/04
- Next message: Thomas Friese: "Re: P2P GraphChat and PNRP Problem"
- Previous message: Rammy: "Windows API for network connection"
- In reply to: Francisco Garcia: "Several server apps at same port in same machine? Just confirm whether my assumptions are true..."
- Next in thread: S.Tripathy\(nospam!\): "Re: Several server apps at same port in same machine? Just confirm whether my assumptions are true..."
- Reply: S.Tripathy\(nospam!\): "Re: Several server apps at same port in same machine? Just confirm whether my assumptions are true..."
- Reply: Francisco Garcia: "Re: Several server apps at same port in same machine? Just confirm whether my assumptions are true..."
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 25 Mar 2004 13:06:08 -0000
"Francisco Garcia" <nospam@nowhere.com> wrote in message
news:%23XRUq1kEEHA.2548@TK2MSFTNGP12.phx.gbl...
<snip>
> So, I'm searching for a work-around, some way to run several
server-apps
> in the same machine, all answering to connection requests to a well known
> port from the internet. I suppose that, internaly, each server instance
will
> listen at a different port.
<snip>
> Do you know of a better approach?
I checked your list of solutions and didn't see anything quite like this
which I think might be quite simple to implement:
This is only an idea and not something I've ever done.
Write a new server that listens on the well known port and can handle up to
N clients concurrently. Run N copies of the old 'single client' server on
the same machine. Have those N copies listening on ports M through M+(N-1)
which are only known to your new server.
When a client established a connection to the new server, the new server
would 'know' which of the 'single client' servers was free and connect to
that. The new server would just recv() anything from the client and send()
it to the correct instance of the 'single client' server and vice versa.
Would that do the trick ?
Dave.
- Next message: Thomas Friese: "Re: P2P GraphChat and PNRP Problem"
- Previous message: Rammy: "Windows API for network connection"
- In reply to: Francisco Garcia: "Several server apps at same port in same machine? Just confirm whether my assumptions are true..."
- Next in thread: S.Tripathy\(nospam!\): "Re: Several server apps at same port in same machine? Just confirm whether my assumptions are true..."
- Reply: S.Tripathy\(nospam!\): "Re: Several server apps at same port in same machine? Just confirm whether my assumptions are true..."
- Reply: Francisco Garcia: "Re: Several server apps at same port in same machine? Just confirm whether my assumptions are true..."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|