org.jogre.comm
Class CommConnect

java.lang.Object
  |
  +--org.jogre.comm.CommSimpleMessage
        |
        +--org.jogre.comm.CommConnect
All Implemented Interfaces:
ITransmittable

public class CommConnect
extends CommSimpleMessage

Communciations connect object.

Version:
Alpha 0.1
Author:
Bob Marks

Field Summary
static int CLIENT_DISCONNECT
           
static int CLIENT_REQUEST_CONNECT
           
static int SERVER_RECEIVED_CONNECT
           
 
Fields inherited from class org.jogre.comm.CommSimpleMessage
status, username
 
Constructor Summary
CommConnect(String inString)
          Constructor which creates a CommConnect object from the flatten () method of another CommConnect object.
CommConnect(String username, int status)
           
 
Method Summary
 String flatten()
          This method flattens an ITransmittable object into a String which can be transmitted.
 
Methods inherited from class org.jogre.comm.CommSimpleMessage
getStatus, getUsername
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLIENT_REQUEST_CONNECT

public static final int CLIENT_REQUEST_CONNECT

SERVER_RECEIVED_CONNECT

public static final int SERVER_RECEIVED_CONNECT

CLIENT_DISCONNECT

public static final int CLIENT_DISCONNECT
Constructor Detail

CommConnect

public CommConnect(String username,
                   int status)
Parameters:
status -  
username -  

CommConnect

public CommConnect(String inString)
            throws TransmissionException
Constructor which creates a CommConnect object from the flatten () method of another CommConnect object.
Parameters:
inString -  
Throws:
TransmissionException -  
Method Detail

flatten

public String flatten()
Description copied from interface: ITransmittable
This method flattens an ITransmittable object into a String which can be transmitted. The object can then be recreated again from this String using its single String parameter constructor.
Following copied from interface: org.jogre.comm.ITransmittable
Returns: