server
i need a code so if client closes connection then server close that connection.
i havnt added no array to winsock1 il rather get advise of u i know just by adding winsock(0) is not gona help some other more code is needed to accept multi connection am missing something little lost.
please guys kinda help me make this accept multi connections thanks.
Code:
Private Sub Form_Load()
Winsock1.Close
Winsock1.LocalPort = 1121
Winsock1.Listen
End Sub
Code:
Private Sub Winsock1_ConnectionRequest(ByVal requestID As Long)
Winsock1.Close
Winsock1.Accept requestID
Winsock1.SendData "server : Connection Complete."
End Sub
i havnt added no array to winsock1 il rather get advise of u i know just by adding winsock(0) is not gona help some other more code is needed to accept multi connection am missing something little lost.
please guys kinda help me make this accept multi connections thanks.