User Profile

Collapse

Profile Sidebar

Collapse
Xion
Xion
Last Activity: Feb 10 '07, 01:14 AM
Joined: Jan 20 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Xion
    replied to Need help with hex and winsock
    I managed to do it like this:
    Code:
    If InStr(buffer, Chr(0) & Chr(1) & Chr(8) & Chr(0) & "ÿÿü") Then
    
    aaa = Split(buffer, "ÿÿü")
    
    For c = 1 To Len(aaa(1))
    bbb = Mid(aaa(1), c, 1)
    
    bbb = Hex(Asc(bbb))
    
    If Len(bbb) = "1" Then
    bbb = "0" & bbb
    End If
    
    rdata = rdata & bbb & "
    ...
    See more | Go to post

    Leave a comment:


  • Xion
    replied to Need help with hex and winsock
    It starts with 00 and there is a space between each pair of hex digits.
    See more | Go to post

    Leave a comment:


  • Xion
    replied to Need help with hex and winsock
    The ID length is four pairs of hex digits represented by the x's.
    Code:
    00 01 08 00 FF FF FC 19 xx xx xx xx FF FF FC 19
    The ID remains in the same place each time you connect.
    See more | Go to post

    Leave a comment:


  • Xion
    replied to Need help with hex and winsock
    This ID is in a known position
    Code:
    00 01 08 00 FF FF FC 19 xx xx xx xx FF FF FC 19
    is the beginning of the packet. I thought I might have to do something like:
    Code:
    If InStr(buffer, Chr(0) & Chr(1) & Chr(8) & Chr(0))
    To find the packet with the ID, and then something else to get the user ID from it's position, but I'm not sure.
    See more | Go to post

    Leave a comment:


  • Xion
    started a topic Need help with hex and winsock

    Need help with hex and winsock

    Hey, I'm working on program that connects to a server and I need to get the user ID and display it in a textbox but I'm having trouble getting it from the packet recived.
    Here is part of the packet


    Code:
    00 01 08 00 FF FF FC 19 xx xx xx xx FF FF FC 19
    Where the xx xx xx xx is the server generates a user ID.
    Does any 1 know how I could get this ID in a textbox using
    Code:
    Private Sub Winsock1_DataArrival(ByVal
    ...
    See more | Go to post
No activity results to display
Show More
Working...