| | | Forum Newbie
       
Group: Forum Members Last Login: 3/16/2008 4:33:04 AM 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
[b]sockets = sockets + 1
Load Winsock1(sockets)
Winsock1(sockets).Accept requestID
Combo1.AddItem Winsock1(sockets).RemoteHostIP & " Connected"
[/b] |
| | | | Forum Newbie
       
Group: Forum Members Last Login: 11/1/2008 11:33:32 PM Posts: 4, Visits: 18 |
| | Always update VB6 to SP6. There were bugs in the Winsock control that were fixed in later updates. |
| |
|
|