-
winsock
hi im makeing my own client for a wellknow chat program when i connect to the server it will send a string like this
(wired chr)nickname=blah;admin=0
i found out the wired chrs are the byte length so how do i sepacte them as every time i get send data it will be diffrent and i just want the data not the byte length but it would be nice to see what the byte legth is in long so i can send back data the same way
-
-
What I am confused as to what you are talking about???
*Head rolls off and bounces on floor
:confused: :confused: :confused: :confused: :confused: :confused: :confused: :confused: :confused:
-
hmmm i will have to explan better give me some time to think out a way to descibe it and i will get back to u
-
ok I connect to a chat server using Winsock it sends to me this
^&chr(0)Chr(1)8"!X:hello
so I send the same back
then it sends me a request for my password
*&^£$%Chr(7)Chr(0)Chr(1)^password=send
so I send
*&^£$%Chr(7)Chr(0)Chr(1)^password=my password
I have found out by doing tests that the bit at the begging is the vb6 version of VbByteTotal
I would like to convert that bit of info at the begging into the correct readable type rafter than all the Chr(0)^&*"£Chr(1)
if you could help it would be very helpful
-
the server i am connecting to is not mine and is a big vioce chat program so i do not have the souce for the server
-
Maybe its just me but it looks encoded to me :) :) :)
Do you actually need the value????
you get a bytes value back from the winsock control itself ;) ;)
-
yes it will also help me split the data up so i dont get megerd data from the winsock so the server sends me
^&chr(0)$£"nickname=john%£"d£*chr(1)admin=0
i want it to show like this
^&chr(0)$£"nickname=john
%£"d£*chr(1)admin=0
but is the beging is diffrent every time i cant so mabey if i turn it into a vaule i can split the strings properly and i need to know cus the stings i send need to have the same at the font of them
e.g.
if ^&chr(0) represented the value 5 then i could only send a string of 5 "12345"
-
hmmmmmmm :confused: :confused: :confused:
illl think about it ;)