problem with tcpclient when reconnecting.
-
i use a tcpclient to connect to a server it works fine, but when i disconnect the tcpcleint and then again try to connect to server it gives th exception saying this endpoint is already in use. any idea to solve this. when disconnecting i call the tcpclient.close(). thanx in advance.
-
i use a tcpclient to connect to a server it works fine, but when i disconnect the tcpcleint and then again try to connect to server it gives th exception saying this endpoint is already in use. any idea to solve this. when disconnecting i call the tcpclient.close(). thanx in advance.
I'm fairly sure you can't reuse it, but I don't recall ever trying.
-
I'm fairly sure you can't reuse it, but I don't recall ever trying.
thanx for your reply, so is that mean once a tcpclient bound to an endpoint we cannot use that endpoint for another tcpclient even we close the first tcpclient ? thanx in advance
-
thanx for your reply, so is that mean once a tcpclient bound to an endpoint we cannot use that endpoint for another tcpclient even we close the first tcpclient ? thanx in advance
Again, I've never tried, I always make a new endpoint. See my TelnetSocket[^] article for how I use them.
-
i use a tcpclient to connect to a server it works fine, but when i disconnect the tcpcleint and then again try to connect to server it gives th exception saying this endpoint is already in use. any idea to solve this. when disconnecting i call the tcpclient.close(). thanx in advance.