|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectThincMsg
ThincCMsg
public abstract class ThincCMsg
abstract class for client messages. it represents CLIENT => SERVER messages on protocol specification. every client messages should derived from this class.
ThincMsg
Field Summary |
---|
Fields inherited from class ThincMsg |
---|
canvas, handler |
Constructor Summary | |
---|---|
ThincCMsg(ThincHandler h,
ThincClientCanvas c)
|
Method Summary | |
---|---|
byte |
getFlag()
getFlag() get the flag option from client message. it is just for future development. |
abstract byte |
getMsgType()
getMsgType() returns a type of the message. |
short |
headerSize()
headerSize() returns the header size of the client message. different from messageSize() method, it only returns the header of total messages. |
abstract short |
messageSize()
messageSize() returns the total messageSize to send. |
abstract void |
putMessage(java.nio.ByteBuffer b)
putMessage() puts messages to send to server. |
Methods inherited from class ThincMsg |
---|
process |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ThincCMsg(ThincHandler h, ThincClientCanvas c)
Method Detail |
---|
public abstract short messageSize()
public abstract void putMessage(java.nio.ByteBuffer b)
b
- ByteBuffer object to sendpublic abstract byte getMsgType()
public short headerSize()
ThincCMsgInitRequestVideoClientFormat
public byte getFlag()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |