Package crow.game.examples.pingpong.proto


package crow.game.examples.pingpong.proto
This is the ping pong protocol package and would, in more complex scenarios, be in its own JAR. It contains the POJOs and PacketHandlers for both client and server needs and is meant to be included in both sides to support bidirectional communication.

If you look at the Ping and Pong objects and their corresponding PacketHandlers, you'll notice there is no real different between the two. The request/response model in this system is not defined(1) so objects can be both, providing their PacketHandlers implement both decode and encode.

(1) NOTE: This may change in the future!

See Also:
  • Classes
    Class
    Description
     
    The super simple Ping request POJO
    This is the packet handler for the Ping message.
    The super simple Pong response POJO
    This is the packet handler for the Pong message.
    The root context is the context implementation for the Ping/Pong server and defines the packet version and provides the PacketHandlers.