Home Forums Support TCPConnection.GetConnection Reply To: TCPConnection.GetConnection

#3296
Anonymous
Inactive

Heya David,

Many thanks for your post and thank-you for your support of our network library.

You are correct that NetworkComms.Net will always use an existing connection to the same remote endpoint if one exists. This is to ensure the overhead due to connection establishment is minimised. Unless you modify the source it is not possible to prevent this behaviour.

What you can do however is create N listeners, all on a different ports (but the same IP), and then connect to each port independently. If you purchased either the Indie or Enterprise packages there is an included sample that does the above, in the DebugTest project, NumConnectionsLoadTest.cs.

Hope that’s helpful,
Kind regards,
Marc