Once you close a socket, you can not open it again.
You could however do something like this:
'done using the socket, so close it.
MySocket.shutdown(Both)
MySocket.close
'now you need to use it again
MySocket = new Socket(whatever params)
'set a few parameters (like endpoint, blocking, etc...)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.