|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.red5.server.net.protocol.ProtocolState
org.red5.server.net.rtmp.codec.RTMP
public class RTMP
RTMP is the RTMP protocol state representation.
| Field Summary | |
|---|---|
static int |
DEFAULT_CHUNK_SIZE
Default chunk size. |
static byte |
STATE_CONNECT
Connect state. |
static byte |
STATE_CONNECTED
Connected. |
static byte |
STATE_DISCONNECTED
Disconnected. |
static byte |
STATE_DISCONNECTING
In the processing of disconnecting |
static byte |
STATE_EDGE_CONNECT_ORIGIN_SENT
Sent the connect message to origin. |
static byte |
STATE_EDGE_DISCONNECTING
Edge is disconnecting, waiting Origin close connection. |
static byte |
STATE_ERROR
Error. |
static byte |
STATE_HANDSHAKE
Handshake state. |
static byte |
STATE_ORIGIN_CONNECT_FORWARDED
Forwarded client's connect call to origin. |
String[] |
states
|
| Fields inherited from class org.red5.server.net.protocol.ProtocolState |
|---|
DECODER_BUFFER, DECODER_CONTINUE, DECODER_OK, SESSION_KEY |
| Constructor Summary | |
|---|---|
RTMP()
Creates RTMP object; essentially for storing session information. |
|
| Method Summary | |
|---|---|
IConnection.Encoding |
getEncoding()
Getter for encoding version. |
Integer |
getLastFullTimestampWritten(int channelId)
|
int |
getLastReadChannel()
Return channel being read last. |
Header |
getLastReadHeader(int channelId)
Return last read header for channel. |
Packet |
getLastReadPacket(int channelId)
Return last read packet for channel. |
Header |
getLastReadPacketHeader(int channelId)
|
int |
getLastWriteChannel()
Getter for channel being written last. |
Header |
getLastWriteHeader(int channelId)
Return last written header for channel. |
Packet |
getLastWritePacket(int channelId)
Return packet that has been written last. |
int |
getReadChunkSize()
Getter for write chunk size. |
byte |
getState()
Return current state. |
int |
getWriteChunkSize()
Getter for write chunk size. |
boolean |
isDebug()
Getter for debug. |
boolean |
isEncrypted()
|
void |
setDebug(boolean debug)
Setter for debug. |
void |
setEncoding(IConnection.Encoding encoding)
Setter for encoding version. |
void |
setEncrypted(boolean encrypted)
|
void |
setLastFullTimestampWritten(int channelId,
int timer)
|
void |
setLastReadHeader(int channelId,
Header header)
Setter for last read header. |
void |
setLastReadPacket(int channelId,
Packet packet)
Setter for last read packet. |
void |
setLastReadPacketHeader(int channelId,
Header header)
|
void |
setLastWriteHeader(int channelId,
Header header)
Setter for last written header. |
void |
setLastWritePacket(int channelId,
Packet packet)
Setter for last written packet. |
void |
setReadChunkSize(int readChunkSize)
Setter for read chunk size. |
void |
setState(byte state)
Setter for state. |
void |
setWriteChunkSize(int writeChunkSize)
Setter for write chunk size. |
String |
toString()
|
| Methods inherited from class org.red5.server.net.protocol.ProtocolState |
|---|
bufferDecoding, canContinueDecoding, canStartDecoding, continueDecoding, getDecoderBufferAmount, hasDecodedObject, startDecoding |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public String[] states
public static final byte STATE_CONNECT
public static final byte STATE_HANDSHAKE
public static final byte STATE_CONNECTED
public static final byte STATE_ERROR
public static final byte STATE_DISCONNECTING
public static final byte STATE_DISCONNECTED
public static final byte STATE_EDGE_CONNECT_ORIGIN_SENT
public static final byte STATE_ORIGIN_CONNECT_FORWARDED
public static final byte STATE_EDGE_DISCONNECTING
public static final int DEFAULT_CHUNK_SIZE
| Constructor Detail |
|---|
public RTMP()
| Method Detail |
|---|
public boolean isDebug()
public void setDebug(boolean debug)
debug - Debug flag new valuepublic boolean isEncrypted()
public void setEncrypted(boolean encrypted)
encrypted - the encrypted to setpublic byte getState()
public void setState(byte state)
state - New state
public void setLastReadHeader(int channelId,
Header header)
channelId - Channel idheader - Headerpublic Header getLastReadHeader(int channelId)
channelId - Channel id
public void setLastWriteHeader(int channelId,
Header header)
channelId - Channel idheader - Headerpublic Header getLastWriteHeader(int channelId)
channelId - Channel id
public void setLastReadPacket(int channelId,
Packet packet)
channelId - Channel idpacket - Packetpublic Packet getLastReadPacket(int channelId)
channelId - Channel id
public void setLastWritePacket(int channelId,
Packet packet)
channelId - Channel idpacket - Last written packetpublic Packet getLastWritePacket(int channelId)
channelId - Channel id
public int getLastReadChannel()
public int getLastWriteChannel()
public int getReadChunkSize()
public void setReadChunkSize(int readChunkSize)
readChunkSize - Value to set for property 'readChunkSize'.public int getWriteChunkSize()
public void setWriteChunkSize(int writeChunkSize)
writeChunkSize - Write chunk sizepublic IConnection.Encoding getEncoding()
public void setEncoding(IConnection.Encoding encoding)
encoding - Encoding version
public void setLastFullTimestampWritten(int channelId,
int timer)
public Integer getLastFullTimestampWritten(int channelId)
public void setLastReadPacketHeader(int channelId,
Header header)
public Header getLastReadPacketHeader(int channelId)
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||