package jasync;

/**
 * Identifies the action that should be taken. All of the values defined in
 * this enum are used by the package, however new fields can be defined for use
 * in the application.
 * @see Message
 */
public enum MessageCommand {
    /**
     * No action required.
     */
    NOP,

    /**
     * Handshake to establish that both ends of the connection are the right
     * kind of peer.
     */
    HANDSHAKE,

    /**
     * Pseudo-message not sent on the network. Used to indicate that a
     * connection has been established.
     */
    CONNECT,

    /**
     * Pseudo-message not sent on the network. Used to indicate that a
     * connection has been dropped.
     */
    DISCONNECT
}

