cvs commit: spice/sandbox/packet/src/java/org/realityforge/packet/protocol ProtocolConstants.java
Peter Donald <[email protected]> Tue, 11 Nov 2003 14:34:23 -0800
| Newsgroups | gmane.comp.java.spice.cvs |
|---|---|
| Message-ID | <[email protected]> |
donaldp 03/11/11 14:34:23
Added: sandbox/packet/src/java/org/realityforge/packet/protocol
ProtocolConstants.java
Log:
Add in some constants for network protocol
Revision Changes Path
1.1 spice/sandbox/packet/src/java/org/realityforge/packet/protocol/ProtocolConstants.java
Index: ProtocolConstants.java
===================================================================
/*
* Copyright (C) The Spice Group. All rights reserved.
*
* This software is published under the terms of the Spice
* Software License version 1.1, a copy of which has been included
* with this distribution in the LICENSE.txt file.
*/
package org.realityforge.packet.protocol;
/**
* Set of constants used in network protocol.
*
* @author <a href="mailto:peter at realityforge.org">Peter Donald</a>
* @version $Revision: 1.1 $ $Date: 2003/11/11 22:34:23 $
*/
public interface ProtocolConstants
{
/**
* Message ID to indicate connection occured.
* SessionID (short) and SessionAuth (short) fields follow.
*/
byte S2C_CONNECTED = 0;
/**
* Message indicating that there stream header was invalid.
*/
byte S2C_BAD_MAGIC = 1;
/**
* Message indicating bad SessionID.
*/
byte S2C_BAD_SESSION = 2;
/**
* Message indicating bad SessionAuth.
*/
byte S2C_BAD_AUTH = 3;
/**
* Message indicating client needs to login.
* SessionID (short) and SessionAuth (short) fields follow.
* If this is new Session the SessionID and SessionAuth
* are -1.
*/
byte C2S_LOGIN = 4;
/**
* Message indicating client has established
* connection.
*/
byte C2S_ESTABLISHED = 5;
/**
* Message indicating regular data being transmitted.
*/
byte MSG_DATA = 6;
/**
* Message indicating client or server is
* disconnecting.
*/
byte MSG_DISCONNECT = 7;
}
-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/