Thread: Byte-array length of sendMessage()

Results 1 to 3 of 3
  1. #1 Byte-array length of sendMessage() 
    Registered Member
    Join Date
    Nov 2010
    Posts
    262
    Thanks given
    9
    Thanks received
    17
    Rep Power
    15
    Hey.

    How come do we send 3 more bytes, than the messages length in the sendMessage() method?
    Code:
    message.length() + 3
    Is it the packet header?


    Do we have any documentation on how many bytes should be assigned different packets?
    Runescape toolkit - ultra-lightweight! Only 20 kb!
    Reply With Quote  
     

  2. #2  
    brb ridin da storm

    blakeman8192's Avatar
    Join Date
    Dec 2012
    Age
    31
    Posts
    2,012
    Thanks given
    818
    Thanks received
    1,361
    Rep Power
    329
    first byte: the opcode.
    second byte: the variable length byte.
    third byte: the string delimiter (value 10 in runetek3, value 0 in runetek 4+).

    the packet is assembled as such:
    Code:
    opcode, length, message..., delimiter
    rest in peace Qemist, Izzy, Colton, TeChNo PuNk, Impulser, & bootnecklad
    Reply With Quote  
     

  3. Thankful users:


  4. #3  
    Registered Member
    Join Date
    Nov 2010
    Posts
    262
    Thanks given
    9
    Thanks received
    17
    Rep Power
    15
    Quote Originally Posted by blakeman8192 View Post
    first byte: the opcode.
    second byte: the variable length byte.
    third byte: the string delimiter (value 10 in runetek3, value 0 in runetek 4+).

    the packet is assembled as such:
    Code:
    opcode, length, message..., delimiter
    Thanks man Do we have this information wrote down somewhere, for the other packets aswell?
    Runescape toolkit - ultra-lightweight! Only 20 kb!
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 1
    Last Post: 07-28-2010, 04:52 AM
  2. [CLOSE!] Why an array for byte-buffers?!
    By w::v::d in forum Help
    Replies: 3
    Last Post: 05-06-2010, 05:05 PM
  3. String to Byte Array
    By Veratus in forum Application Development
    Replies: 10
    Last Post: 12-12-2009, 12:59 AM
  4. Networking Packet problem with byte array
    By Andys1481 in forum Application Development
    Replies: 12
    Last Post: 11-11-2009, 10:40 PM
  5. Replies: 4
    Last Post: 08-26-2009, 07:14 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •