org.alliance.core.comm
Class HandshakeConnection

java.lang.Object
  extended by org.alliance.core.comm.Connection
      extended by org.alliance.core.comm.PacketConnection
          extended by org.alliance.core.comm.HandshakeConnection

public class HandshakeConnection
extends PacketConnection

Created by IntelliJ IDEA. User: maciek Date: 2005-dec-26 Time: 11:56:47 To change this template use File | Settings | File Templates.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.alliance.core.comm.Connection
Connection.Direction
 
Field Summary
static int MAX_UPGRADEUPLOAD_CONNECTIONS
           
 
Fields inherited from class org.alliance.core.comm.Connection
bandwidthIn, bandwidthOut, bytesReceived, bytesSent, connected, core, direction, hasWriteInterest, key, netMan, statusString
 
Constructor Summary
HandshakeConnection(NetworkManager netMan, java.lang.Object key)
           
 
Method Summary
protected  int getConnectionId()
           
 void packetReceived(Packet p)
           
 
Methods inherited from class org.alliance.core.comm.PacketConnection
getLastPacketSentAt, getPacketsReceived, init, readyToSend, received, send
 
Methods inherited from class org.alliance.core.comm.Connection
bytesReceived, bytesSent, close, getBandwidthIn, getBandwidthOut, getBytesReceived, getBytesSent, getConnectionIdForRemote, getDirection, getKey, getNetMan, getStatusString, hasWriteInterest, isConnected, setHasWriteInterest, setKey, setStatusString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MAX_UPGRADEUPLOAD_CONNECTIONS

public static final int MAX_UPGRADEUPLOAD_CONNECTIONS
See Also:
Constant Field Values
Constructor Detail

HandshakeConnection

public HandshakeConnection(NetworkManager netMan,
                           java.lang.Object key)
Method Detail

packetReceived

public void packetReceived(Packet p)
                    throws java.io.IOException
Specified by:
packetReceived in class PacketConnection
Throws:
java.io.IOException

getConnectionId

protected int getConnectionId()
Specified by:
getConnectionId in class Connection