org.alliance.core.comm.filetransfers
Class UploadConnection
java.lang.Object
org.alliance.core.comm.Connection
org.alliance.core.comm.PacketConnection
org.alliance.core.comm.AuthenticatedConnection
org.alliance.core.comm.filetransfers.TransferConnection
org.alliance.core.comm.filetransfers.UploadConnection
public class UploadConnection
- extends TransferConnection
Created by IntelliJ IDEA.
User: maciek
Date: 2006-jan-26
Time: 21:38:22
To change this template use File | Settings | File Templates.
| Fields inherited from class org.alliance.core.comm.Connection |
bandwidthIn, bandwidthOut, bytesReceived, bytesSent, connected, core, direction, hasWriteInterest, key, netMan, statusString |
| Methods inherited from class org.alliance.core.comm.Connection |
bytesReceived, bytesSent, close, getBandwidthIn, getBandwidthOut, getBytesReceived, getBytesSent, getDirection, getKey, getNetMan, getStatusString, hasWriteInterest, isConnected, setHasWriteInterest, setKey, setStatusString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CONNECTION_ID
public static final int CONNECTION_ID
- See Also:
- Constant Field Values
UploadConnection
public UploadConnection(NetworkManager netMan,
java.lang.Object key,
Connection.Direction direction,
int userGUID)
getRoot
public Hash getRoot()
- Specified by:
getRoot in class TransferConnection
packetReceived
public void packetReceived(Packet p)
throws java.io.IOException
- Specified by:
packetReceived in class PacketConnection
- Throws:
java.io.IOException
readyToSend
public void readyToSend()
throws java.io.IOException
- Overrides:
readyToSend in class PacketConnection
- Throws:
java.io.IOException
getConnectionId
protected int getConnectionId()
- Specified by:
getConnectionId in class Connection
getConnectionIdForRemote
public int getConnectionIdForRemote()
- Overrides:
getConnectionIdForRemote in class Connection
switchMode
protected void switchMode(TransferConnection.Mode m)
- Overrides:
switchMode in class TransferConnection
toString
public java.lang.String toString()
- Overrides:
toString in class AuthenticatedConnection