Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact
A1VBCode Forums
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      

Home » Visual Basic (VB 4/5/6) » Internet/Communications Programming » Winsock problem with loading new sockets


Winsock problem with loading new socketsExpand / Collapse
Author
Message
Posted 3/16/2008 4:38:04 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum 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]
Post #24395
Posted 7/28/2008 3:15:17 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum 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.
Post #25479
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 1 (1 guest, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Brian, Peter

PermissionsExpand / Collapse

All times are GMT -5:00, Time now is 8:43am