I am new to TCP programming so here is a few simple questions:
Client app is calling a listener. I am opening a connection with TcpClient: TcpClient myTcp = new TcpClient("Server", 1000); myTcp.connect(); For how long myTcp will hold a connection, is there any default value, can i change it?
If my calling application has a multiple treads, its a WCF service, each of treads has to call a listener, can i create myTcp as a singleton and reuse it in multiple treads?
If question 2 yes, how many simultaneous connections myTcp can handle?
With singleton approach is there a chance to have synchronization issue between calls and responses?
TcpClient myTcp = new TcpClient("Server", 1000); myTcp.connect();
Client applicationFor how long will be installed on Windows Server 2008. Host application Windows Server 2008 as well.myTcp hold a connection? Is there any default value? Can I change it?
Thank you!
If my calling application has a multiple threads (it's a WCF service), each of threads has to call a listener. Can I create
myTcpas a singleton and reuse it in multiple threads?If question 2 yes, how many simultaneous connections can
myTcphandle?With singleton approach is there a chance to have synchronization issue between calls and responses?