Hello all,
I am writing a client / server application with one server and multiple clients to receive orders from different locations. I am creating new winsocks as per msdn example and have everything working so far. My question is how do I need to close or dispose of the created winsock controls after the data transmission is done ? my server app never really closes and I imagine i will run into several problems if i just keep creating new winsocks.......
Private Sub sckServer_ConnectionRequest(Index As Integer, ByVal requestID As Long)
If Index = 0 Then
intMax = intMax + 1
Load sckServer(intMax)
sckServer(intMax).LocalPort = 0
sckServer(intMax).Accept requestID
Debug.Print intMax
End If
End Sub
I am writing a client / server application with one server and multiple clients to receive orders from different locations. I am creating new winsocks as per msdn example and have everything working so far. My question is how do I need to close or dispose of the created winsock controls after the data transmission is done ? my server app never really closes and I imagine i will run into several problems if i just keep creating new winsocks.......
Private Sub sckServer_ConnectionRequest(Index As Integer, ByVal requestID As Long)
If Index = 0 Then
intMax = intMax + 1
Load sckServer(intMax)
sckServer(intMax).LocalPort = 0
sckServer(intMax).Accept requestID
Debug.Print intMax
End If
End Sub