R
Ramkrishna Kulkarni
Hi,
I am writing a multithreaded application. Each thread creates an
object of WebClient class of C# to open a new connection to the server
everytime.
However, the API seems to be optimizing this and hence it is opening
only two TCP connections to the server for the complete set of
threads. To simulate some real life scenario, I need to open separate
connection for each thread.
Can you please suggest how one can tell the API to open a new
connection everytime? Are there any other API's in C# for networking?
Regards,
Ram
PS:I want to avoid sockets
I am writing a multithreaded application. Each thread creates an
object of WebClient class of C# to open a new connection to the server
everytime.
However, the API seems to be optimizing this and hence it is opening
only two TCP connections to the server for the complete set of
threads. To simulate some real life scenario, I need to open separate
connection for each thread.
Can you please suggest how one can tell the API to open a new
connection everytime? Are there any other API's in C# for networking?
Regards,
Ram
PS:I want to avoid sockets
