I use a socket class to read data from a TCP/IP Camera. The problem I have is I want to connect and close the socket multiple times. Here are the commands to connect and close the socket
_socket.Connect("172.20.83.30", 5001)
_socket.close()
The problem I have is after I close the socket I cannot open it again. Does anybody know how to re-connect? _Socket.Connect will not reconnect.
Another consideration I have is after I closed the socket setting _socket to nothing.
_socket = nothing
But how would I reinitiate the object and connect it.
Here is the code where I initiate it.
Private WithEvents _socket As New ShadowMud.Sockets.AsyncSocket
_socket.Connect("172.20.83.30", 5001)
_socket.close()
The problem I have is after I close the socket I cannot open it again. Does anybody know how to re-connect? _Socket.Connect will not reconnect.
Another consideration I have is after I closed the socket setting _socket to nothing.
_socket = nothing
But how would I reinitiate the object and connect it.
Here is the code where I initiate it.
Private WithEvents _socket As New ShadowMud.Sockets.AsyncSocket