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 will
myTcphold a connection? Is there any default value? Can I change it?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?