-
ok, we (cintel) can use winsock, and have it working in a chat program..
but we're using it in our game, and no matter what we do, something is going wrong, and the data isnt sent properly.
is there a "maximum speed" for winsock - is it possible the buffer is being overfilled or something?
the game doesnt crash, its just no data seems to be sending.
help needed!
-
only limitation i know is that you can only hold 49 connections with the winsock ocx.
what protocoll you are using ? udp or tcp/ip ?
taLON
-
I had a problem using winsock that was when I sent two "messages" in two consecutive code lines it arrived in the server in one same getdata.
I had to split the data into to strings.
-
Why not using a trick with a bof and a eof
example:
Client will send two scripts strings to the server.
string1 = "BOF|checkdata|EOF|" 'client will send now
string2 = "BOF|checktime|EOF|" 'client will send now
the server will get the data.
string = "BOF|checkdata|EOF|BOF|checktime|EOF|"
and now you can split the string and you can see now if it is 1 string or 2 ext. feel creative with it.
this is just a fast example :)
-kayoca
-
yeah we're doing that already - parsing the strings.
we're using tcp/ip
it might work now, because there was a bug before ;)