Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact


Winsock problem with loading new sockets


Winsock problem with loading new sockets

Author
Message
Spider
Spider
Forum God
Forum God (403 reputation)Forum God (403 reputation)Forum God (403 reputation)Forum God (403 reputation)Forum God (403 reputation)Forum God (403 reputation)Forum God (403 reputation)Forum God (403 reputation)Forum God (403 reputation)

Group: Forum Members
Posts: 1, Visits: 2
Well here is my problem. My chat program everytime a new connection request comes in, loads a new socket and then accepts the connection. The problem that im having is that it loads more than one socket but only connects one. So when someone leaves or disconnects the socketcount is wrong. Here is my code for winsock1_connectionrequest



sockets = sockets + 1

Load Winsock1(sockets)

Winsock1(sockets).Accept requestID

Combo1.AddItem Winsock1(sockets).RemoteHostIP & " Connected"


dilettante
dilettante
Forum God
Forum God (3.7K reputation)Forum God (3.7K reputation)Forum God (3.7K reputation)Forum God (3.7K reputation)Forum God (3.7K reputation)Forum God (3.7K reputation)Forum God (3.7K reputation)Forum God (3.7K reputation)Forum God (3.7K reputation)

Group: Forum Members
Posts: 9, Visits: 54
Always update VB6 to SP6.  There were bugs in the Winsock control that were fixed in later updates.
GO


Similar Topics


Reading This Topic


Login
Existing Account
Email Address:


Password:


Social Logins

Select a Forum....

















A1VBCode Forums


Search