Re: Multiple socket clients
- From: R Smith <rhsmith52@xxxxxxxxxxx>
- Date: Thu, 18 Jan 2007 06:13:03 -0600
I did (above) under an old name stuck in my news reader. Like I said
the server has been working for years accepting connections from
multiple hosts and processing the transactions.
I think there is some relevance in that with the loopback address,
multiple local connections are fine but with the specific IP (on the
same machine) I can only keep the last connection going.
"Nils O. Selåsdal" <NOS@xxxxxxx> wrote in
news:45af62e8$1@xxxxxxxxxxxxxxxxx:
R Smith wrote:
I am writing a simulator that talks to an existing server. ThisSounds like you somehow close the prior session when a new one
server accepts multiple (12) connections, in the real world from PCs
that are transfering messages from hardware devices.
If I connect to the server locally, that is, my client running on the
same box, it's fine and I can run multiple instances .. as long as
I'm using the loopback address (127.0.0.1). If I utilize the real IP
address, the 2nd connect works, but breaks the first connection with
a -1 ECONNRESET (or whatever, not handy right now). Doesn't matter
if I'm on the same host or not when I specify the server's IP. Only
the last session persist.
I'm able to connect from multiple hosts but the previous connection
is always reset once the second connection is made.
Am I missing something fundamental here?
is established.
It's hard to give any more advice with the information provided.
Show e.g. some relevant code.
.
- References:
- Multiple socket clients
- From: R Smith
- Re: Multiple socket clients
- From: "Nils O. Selåsdal"
- Multiple socket clients
- Prev by Date: Re: Multiple socket clients
- Next by Date: GDB question on displaying cycles
- Previous by thread: Re: Multiple socket clients
- Next by thread: Re: Multiple socket clients
- Index(es):
Relevant Pages
|