Results 1 to 9 of 9

Thread: winsock

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2003
    Location
    London
    Posts
    18

    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
    ~519~

  2. #2

  3. #3
    KING BODWAD XXI BodwadUK's Avatar
    Join Date
    Aug 2002
    Location
    Nottingham
    Posts
    2,176
    What I am confused as to what you are talking about???

    *Head rolls off and bounces on floor

    If you dribble then you are as mad as me

    Lost World Creations Website (XBOX Indie games)
    Lene Marlin

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Jan 2003
    Location
    London
    Posts
    18
    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
    ~519~

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Jan 2003
    Location
    London
    Posts
    18
    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
    ~519~

  6. #6

    Thread Starter
    Junior Member
    Join Date
    Jan 2003
    Location
    London
    Posts
    18
    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
    ~519~

  7. #7
    KING BODWAD XXI BodwadUK's Avatar
    Join Date
    Aug 2002
    Location
    Nottingham
    Posts
    2,176
    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
    If you dribble then you are as mad as me

    Lost World Creations Website (XBOX Indie games)
    Lene Marlin

  8. #8

    Thread Starter
    Junior Member
    Join Date
    Jan 2003
    Location
    London
    Posts
    18
    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"
    ~519~

  9. #9
    KING BODWAD XXI BodwadUK's Avatar
    Join Date
    Aug 2002
    Location
    Nottingham
    Posts
    2,176
    hmmmmmmm

    illl think about it
    If you dribble then you are as mad as me

    Lost World Creations Website (XBOX Indie games)
    Lene Marlin

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width