Thread: Understanding Packets and Unhandled Packets

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 Understanding Packets and Unhandled Packets 
     

    Vastiko's Avatar
    Join Date
    Dec 2006
    Posts
    5,700
    Thanks given
    300
    Thanks received
    660
    Rep Power
    5000
    So you may be wondering what a Packet is?

    For starters a Packet is sent by the client to the server or vice versa depending what you want to do.

    If you had a simple default case in your packetManager you would see that it prints out the packetId.

    So what does this packet do? This packet allows communication between the client and server, the client sends the packet, the server accepts it, either defaults it or it goes into one of the cases there it is returned with the stream method.

    For example, say we had just logged in, the client would send a packet to the server which should accept the connection and allow login to continue, but if you didnt have the packet, it would be classed as an unhandled packet and you would be waiting a short time at the login screen before it said error connecting time out.

    What can we do to prevent these?

    If you know what and how you made the packet they can be easily sorted by finding the right stream method to send back and adding it under your switch statement.

    That is just the very basics of packets, packets can be used for hell loads more.

    Thanks, any questions, just reply here.
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Aug 2008
    Age
    27
    Posts
    183
    Thanks given
    1
    Thanks received
    0
    Rep Power
    76
    Kinda Good Explanation, But you could have made it much better. and you probably only doing this to get sticky.
    Reply With Quote  
     

  3. #3  
     

    Vastiko's Avatar
    Join Date
    Dec 2006
    Posts
    5,700
    Thanks given
    300
    Thanks received
    660
    Rep Power
    5000
    Quote Originally Posted by Zhydrax View Post
    Kinda Good Explanation, But you could have made it much better. and you probably only doing this to get sticky.
    Nope I see a hell of alot of unhandled packets on my framework so I thought I might aswell help others get rid of their unhandled packets.
    Reply With Quote  
     

  4. #4  
    Donator


    Join Date
    Sep 2007
    Age
    24
    Posts
    2,430
    Thanks given
    127
    Thanks received
    508
    Rep Power
    386
    getbytes you are really 1 HELL of a good friend thanks for this didnt get it before and thanks for the help over msn
    Reply With Quote  
     

  5. #5  
     

    Vastiko's Avatar
    Join Date
    Dec 2006
    Posts
    5,700
    Thanks given
    300
    Thanks received
    660
    Rep Power
    5000
    Quote Originally Posted by FabianScape View Post
    getbytes you are really 1 HELL of a good friend thanks for this didnt get it before and thanks for the help over msn
    your welcome and I hope you do finish your bounty hunter :O
    Reply With Quote  
     

  6. #6  
     

    Vastiko's Avatar
    Join Date
    Dec 2006
    Posts
    5,700
    Thanks given
    300
    Thanks received
    660
    Rep Power
    5000
    lol a good topic yet its getting old
    Reply With Quote  
     

  7. #7  
    Registered Member

    Join Date
    Jul 2006
    Age
    27
    Posts
    1,247
    Thanks given
    0
    Thanks received
    5
    Rep Power
    190
    can u teach us how to find which stream which packet needs
    just yoricka...
    Reply With Quote  
     

  8. #8  
     

    Vastiko's Avatar
    Join Date
    Dec 2006
    Posts
    5,700
    Thanks given
    300
    Thanks received
    660
    Rep Power
    5000
    Quote Originally Posted by yorick View Post
    can u teach us how to find which stream which packet needs

    I seem to think that is all based on client, you find the class in a deobed client which contains the handling streams, then you compare and try to rename some. if they work woopadeedodah.
    Reply With Quote  
     

  9. #9  
    Java/C++ Programmer

    Join Date
    Jun 2008
    Age
    25
    Posts
    1,378
    Thanks given
    203
    Thanks received
    387
    Rep Power
    815
    i gues my stream method
    Reply With Quote  
     

  10. #10  
    Registered Member

    Join Date
    Apr 2008
    Posts
    794
    Thanks given
    1
    Thanks received
    5
    Rep Power
    126
    Quote Originally Posted by getBytes View Post
    So you may be wondering what a Packet is?

    For starters a Packet is sent by the client to the server or vice versa depending what you want to do.

    If you had a simple default case in your packetManager you would see that it prints out the packetId.

    So what does this packet do? This packet allows communication between the client and server, the client sends the packet, the server accepts it, either defaults it or it goes into one of the cases there it is returned with the stream method.

    For example, say we had just logged in, the client would send a packet to the server which should accept the connection and allow login to continue, but if you didnt have the packet, it would be classed as an unhandled packet and you would be waiting a short time at the login screen before it said error connecting time out.

    What can we do to prevent these?

    If you know what and how you made the packet they can be easily sorted by finding the right stream method to send back and adding it under your switch statement.

    That is just the very basics of packets, packets can be used for hell loads more.

    Thanks, any questions, just reply here.
    thank god you didnt call packets "frames"
    Reply With Quote  
     

Page 1 of 2 12 LastLast

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
  •