Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21207

[RESOLVED] making my cam server accept multi help please stuck!

$
0
0
server

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 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.

Viewing all articles
Browse latest Browse all 21207


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>