public interface RelayCell extends Cell
ADDRESS_TYPE_HOSTNAME, ADDRESS_TYPE_IPV4, ADRESS_TYPE_IPV6, AUTH_CHALLENGE, AUTHENTICATE, AUTHORIZE, CELL_HEADER_LEN, CELL_LEN, CELL_PAYLOAD_LEN, CELL_VAR_HEADER_LEN, CERTS, CREATE, CREATE_FAST, CREATED, CREATED_FAST, DESTROY, ERROR_CONNECTFAILED, ERROR_DESTROYED, ERROR_FINISHED, ERROR_HIBERNATING, ERROR_INTERNAL, ERROR_NONE, ERROR_NOSUCHSERVICE, ERROR_OR_CONN_CLOSED, ERROR_OR_IDENTITY, ERROR_PROTOCOL, ERROR_REQUESTED, ERROR_RESOURCELIMIT, ERROR_TIMEOUT, NETINFO, PADDING, RELAY, RELAY_EARLY, VERSIONS, VPADDING| Modifier and Type | Method and Description |
|---|---|
CircuitNode |
getCircuitNode()
Return the circuit node this cell was received from for outgoing cells or the destination circuit node
for outgoing cells.
|
ByteBuffer |
getPayloadBuffer() |
int |
getRelayCommand() |
int |
getStreamId() |
void |
setDigest(byte[] digest) |
void |
setLength() |
cellBytesConsumed, cellBytesRemaining, getByte, getByteArray, getByteAt, getCellBytes, getCircuitId, getCommand, getInt, getShort, getShortAt, putByte, putByteArray, putByteArray, putByteAt, putInt, putShort, putShortAt, putString, resetToPayloadstatic final int LENGTH_OFFSET
static final int RECOGNIZED_OFFSET
static final int DIGEST_OFFSET
static final int HEADER_SIZE
static final int RELAY_BEGIN
static final int RELAY_DATA
static final int RELAY_END
static final int RELAY_CONNECTED
static final int RELAY_SENDME
static final int RELAY_EXTEND
static final int RELAY_EXTENDED
static final int RELAY_TRUNCATE
static final int RELAY_TRUNCATED
static final int RELAY_DROP
static final int RELAY_RESOLVE
static final int RELAY_RESOLVED
static final int RELAY_BEGIN_DIR
static final int RELAY_EXTEND2
static final int RELAY_EXTENDED2
static final int RELAY_COMMAND_ESTABLISH_INTRO
static final int RELAY_COMMAND_ESTABLISH_RENDEZVOUS
static final int RELAY_COMMAND_INTRODUCE1
static final int RELAY_COMMAND_INTRODUCE2
static final int RELAY_COMMAND_RENDEZVOUS1
static final int RELAY_COMMAND_RENDEZVOUS2
static final int RELAY_COMMAND_INTRO_ESTABLISHED
static final int RELAY_COMMAND_RENDEZVOUS_ESTABLISHED
static final int RELAY_COMMAND_INTRODUCE_ACK
static final int REASON_MISC
static final int REASON_RESOLVEFAILED
static final int REASON_CONNECTREFUSED
static final int REASON_EXITPOLICY
static final int REASON_DESTROY
static final int REASON_DONE
static final int REASON_TIMEOUT
static final int REASON_NOROUTE
static final int REASON_HIBERNATING
static final int REASON_INTERNAL
static final int REASON_RESOURCELIMIT
static final int REASON_CONNRESET
static final int REASON_TORPROTOCOL
static final int REASON_NOTDIRECTORY
int getStreamId()
int getRelayCommand()
CircuitNode getCircuitNode()
ByteBuffer getPayloadBuffer()
void setLength()
void setDigest(byte[] digest)
Copyright © 2015. All rights reserved.