Re: Multiple socket clients



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. This
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?
Sounds like you somehow close the prior session when a new one
is established.
It's hard to give any more advice with the information provided.
Show e.g. some relevant code.


.



Relevant Pages

  • Re: downloading a single file using multiple threads
    ... The multi part requests in HTTP1.1 are meant to request a single part or multiple parts in a single request, but you can't requests multiple parts in parallel from multiple client threads. ... I know that down-load managers claim to work over HTTP, but that doesn't mean they support multi-part parallel request handling over the same or multiple connections, I don't even know if the protocol allows you to issue new range request when you have a range requests pending. ... If on one connection the client asks for the first megabyte and on a second connection the same client asks for the second megabyte, then if the server is capable of servicing both requests at the same time, there's no reason the client can't wind up receiving both the first and second megabytes in parallel. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: downloading a single file using multiple threads
    ... The multi part requests in HTTP1.1 are meant to request a single part or multiple parts in a single request, but you can't requests multiple parts in parallel from multiple client threads. ... There's nothing about HTTP that requires servers to restrict their communications to a given client to a single connection, and there's nothing about HTTP that stipulates that an HTTP server needs to coordinate communications on independent connections. ...
    (microsoft.public.dotnet.languages.csharp)
  • Multiple socket clients
    ... I am writing a simulator that talks to an existing server. ... it's fine and I can run multiple instances .. ... I'm able to connect from multiple hosts but the previous connection is ...
    (comp.unix.programmer)
  • Re: Port trunking / link aggregation problem
    ... in ethernet switches. ... The connection is mostly used by a single computer at ... A single link is designated for flooding broadcasts and packets ... If you use a router that supports multiple G.SHDSL interfaces, ...
    (comp.dcom.lans.ethernet)
  • Re: Setting up incoming dial up connections
    ... The users will get their internet connection from the server. ... > multiple modems on the server and do I need to have ... how are the remote users ...
    (microsoft.public.windows.server.general)