Register | Login | |||||
Main
| Memberlist
| Active users
| Calendar
| Chat
| Online users Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album |
| |
0 users currently in Programming. |
User | Post |
Sukasa Posts: 787/2068 |
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! |
dcahrakos Posts: 369/499 |
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 |
dormento Posts: 26/48 |
snip
Edit: Dangit, seems I didn't read your post right Edit2: Your answer might be here. |
Sukasa Posts: 785/2068 |
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? |