Register | Login | |||||
Main
| Memberlist
| Active users
| Calendar
| Chat
| Online users Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album |
| |
0 users currently in Programming. |
Acmlm's Board - I3 Archive - Programming - VB6 TCP problems | New poll | | |
Add to favorites | Next newer thread | Next older thread |
User | Post | ||
Sukasa Birdo Not quite as active as before. Xkeeper supporter Xk > ||bass I IP Banned myself! Twice! Since: 11-17-05 From: Somewhere over there Last post: 6340 days Last view: 6339 days |
| ||
um... yeah... I'm trying to get a program that acts as a server on a network, using the TCP protocol in VB6. My problem is, the server usually doesn't recieve connection requests after the first one. The way the server program was designed was that there would be 33 MS Winsock controls on the form, which is height 0 and width 0. There would be 32 or them in an array which handle connections, and one which sets them up, taking in connection requests and making an open port accept them. However, after the first connection, the "TCPConnector" winsock control stops recieving requests. Could someone please tell me what I am doing wrong with this code? There is also a timer, but that's used for mostly the caption at the bottom.
If anyone would like the whole .vbp project and form and everything, I can package the three things into a .zip file and upload for them. EDIT: nvm. The error was "Address In Use", from the program connecting to the server code above. ...That's on the client side, right? (edited by Sukasa + on 04-13-06 03:43 PM) |
|||
dormento Red Goomba Since: 11-18-05 Last post: 6492 days Last view: 6339 days |
| ||
snip
Edit: Dangit, seems I didn't read your post right Edit2: Your answer might be here. (edited by dormento on 04-13-06 06:07 PM) (edited by dormento on 04-14-06 07:31 PM) |
|||
dcahrakos 490 Since: 11-17-05 Last post: 6556 days Last view: 6556 days |
| ||
If I remember correctly, if you are using winsock, you need to turn the winsock control into an array.
heres a link http://www.winsockvb.com/forums/showthread.php?s=&threadid=3069 however, if you are planning on a lot of connections, and are using the control, consider using the actual API: http://www.vbip.com/winsock-api/select-socket/select-socket-01.asp |
|||
Sukasa Birdo Not quite as active as before. Xkeeper supporter Xk > ||bass I IP Banned myself! Twice! Since: 11-17-05 From: Somewhere over there Last post: 6340 days Last view: 6339 days |
| ||
Eh, I later found the problem. I fixed it, it was client-side. Now, however, there is a new problem. If I have more than one client, then only the last person to join in will recieve messages, the rest can only send, and won't even recieve the messages they sent! |
Add to favorites | Next newer thread | Next older thread |
Acmlm's Board - I3 Archive - Programming - VB6 TCP problems | | |