(Link to AcmlmWiki) Offline: thank ||bass
Register | Login
Views: 13,040,846
Main | Memberlist | Active users | Calendar | Chat | Online users
Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album
07-03-24 02:07 AM
0 users currently in Programming.
Acmlm's Board - I3 Archive - Programming - VB6 - Winsock control not working properly 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: 6345 days
Last view: 6344 days
Posted on 07-18-06 03:02 AM Link | Quote
Yeah... I'm working on a little server program that is designed for use with 32 differnt conenctions at once... however, it doesn't work properly. I can tell youexcetly what doesn't work right:

In the included file CLserver.rar, and in frmMain.frm, the SendtoAll loop has the problem. In it, it calls the "SendData" method of all of the 32 elements of the ms winsock control in the control array "TCPClientport([0 - 31])" to send various strings to all the connected users. however, only the very last person to have connected will get the data, for the rest the send doesn't complete, or even start!

However, if I pause the program in the VB6 IDE, and then unpause it, everythign sends fine. likewise, if the last person to have logged on to the server logs off, then the second-last person will recieve ALL of their messages in one long string then next time the server sends anything out, as they will begin recieving data.

So... does anyone have an idea how to fix this? also: the server gives out fairly detailed info, and it makes the bug apparent, if you just run it. note that you'll need to network at least 2 computers together for this to work, and the battletankz.rar file has a program that's designed compatible with the CLserver program that's buggy.

Lastly, to connect to the CL server, when battletankz loads, access the connection dialog (upper-right corner has the access button), and set the conenction up there.

Oh, and for anyone security-minded, the battletankz program *ahem* stores registry keys in HKEY_LOCAL_MACHINE\Software\Codedlance Games\Battletankz\

EDIT: Oops... I forgot to add the attachments. I'll create links to them, hold on a sec.

EDIT2:
Batteltankz.rar
CLserver.rar


(edited by Sukasa + on 07-18-06 02:10 AM)
Add to favorites | Next newer thread | Next older thread
Acmlm's Board - I3 Archive - Programming - VB6 - Winsock control not working properly |


ABII

Acmlmboard 1.92.999, 9/17/2006
©2000-2006 Acmlm, Emuz, Blades, Xkeeper

Page rendered in 0.017 seconds; used 353.61 kB (max 414.68 kB)