I'm writing a small client/server application.
I've got it almost completely working, other than the fact that once the user disconeccts from the server using TcpClient.close he can not reconnect without restarting the app because clientSocket is disposed.
Dim clientSocket As New System.Net.Sockets.TcpClient()
Reconnect (returns error or clientSocket being disposed):
So my question is: Is there any way to un-dispose the Tcpclient or is there a way to disconnect without disposing the Tcpclient?
Thanks for the help