|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectanon.tor.cells.Cell
public abstract class Cell
| Field Summary | |
|---|---|
static int |
CELL_PAYLOAD_SIZE
|
static int |
CELL_SIZE
|
private int |
m_circID
|
private int |
m_command
|
protected byte[] |
m_payload
|
| Constructor Summary | |
|---|---|
protected |
Cell(int command)
|
protected |
Cell(int command,
int circID)
|
protected |
Cell(int command,
int circID,
byte[] payload)
|
protected |
Cell(int command,
int circID,
byte[] payload,
int offset)
|
| Method Summary | |
|---|---|
static Cell |
createCell(byte[] cellData)
creates a cell with the given data |
byte[] |
getCellData()
creates a fixed-sized cell 2 bytes - circID 1 byte - command 509 bytes - payload |
int |
getCircuitID()
gets the circuit id |
int |
getCommand()
returns the command of the cell |
byte[] |
getPayload()
gets the payload of the cell |
void |
setPayload(byte[] payload,
int offset)
sets the payload |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int CELL_SIZE
public static final int CELL_PAYLOAD_SIZE
private int m_circID
private int m_command
protected byte[] m_payload
| Constructor Detail |
|---|
protected Cell(int command)
protected Cell(int command,
int circID)
protected Cell(int command,
int circID,
byte[] payload)
protected Cell(int command,
int circID,
byte[] payload,
int offset)
| Method Detail |
|---|
public byte[] getCellData()
public int getCommand()
public int getCircuitID()
public byte[] getPayload()
public void setPayload(byte[] payload,
int offset)
payload - payloadoffset - offsetpublic static Cell createCell(byte[] cellData)
cellData - data
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||