Thread: [525 Update Server] What does opcode 6 do?

Results 1 to 4 of 4
  1. #1 [525 Update Server] What does opcode 6 do? 
    :doge:

    Join Date
    Jan 2009
    Posts
    3,758
    Thanks given
    221
    Thanks received
    817
    Rep Power
    2116
    opcode 6 is the first opcode sent by the client, which i currently am not handling(i need to find out what it does).. anyone know?
    Reply With Quote  
     

  2. #2  
    Renown Programmer
    Method's Avatar
    Join Date
    Feb 2009
    Posts
    1,455
    Thanks given
    0
    Thanks received
    845
    Rep Power
    3019
    If it's the same as it is in later revisions, it may just be sent right after the handshake is completed as some sort of verification that a new connection was initiated (and may also tell the server to clear its request queues for the client that connected). I'm not sure if the server does anything different if it's not sent, but you're welcome to try it out yourself to see if it makes a difference or not.
    :-)
    Reply With Quote  
     

  3. #3  
    Renown Programmer and Respected Member
    Maxi's Avatar
    Join Date
    Jun 2008
    Posts
    3,197
    Thanks given
    281
    Thanks received
    1,095
    Rep Power
    1366
    Opcodes from client.

    Code:
    	public static final int FILE_REQUEST = 0;
    	public static final int PRIORITY_FILE_REQUEST = 1;
    	public static final int CLIENT_LOGGED_IN = 2;
    	public static final int CLIENT_LOGGED_OUT = 3;
    	public static final int NEW_ENCRYPTION_BYTE = 4;
    	public static final int INITIATE_CONNECTION = 6;
    	public static final int TERMINATE_CONNECTION = 7;
    Opcodes from server (there are probably more but I never looked at them).

    Code:
    	public static final int STATE_OK = 0;
    	public static final int STATE_OUT_OF_DATE = 6;
    	public static final int STATE_IO_ERROR = 8;
    Reply With Quote  
     

  4. #4  
    :doge:

    Join Date
    Jan 2009
    Posts
    3,758
    Thanks given
    221
    Thanks received
    817
    Rep Power
    2116
    thanks maxi
    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

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