Class ThincCMsgInitRequestVideoClientFormat

java.lang.Object
  extended by ThincMsg
      extended by ThincCMsg
          extended by ThincCMsgInit
              extended by ThincCMsgInitRequest
                  extended by ThincCMsgInitRequestVideoClientFormat

public final class ThincCMsgInitRequestVideoClientFormat
extends ThincCMsgInitRequest

let the server knows that client supported format for video.

Author:
Young Jin Yoon
See Also:
ThincCMsgInitRequest

Field Summary
static int FMT_MESSAGE_SIZE
           
static int INIT_MESSAGE_TYPE
           
static int MESSAGE_SIZE
           
 
Fields inherited from class ThincCMsgInitRequest
MESSAGE_TYPE
 
Fields inherited from class ThincMsg
canvas, handler
 
Constructor Summary
ThincCMsgInitRequestVideoClientFormat(ThincMsgHandler h, ThincClientCanvas c)
          creates ThincCMsgInitRequestVideoClientFormat object.
 
Method Summary
 short headerSize()
          headerSize() returns the header size of the client message. different from messageSize() method, it only returns the header of total messages.
 short messageSize()
          messageSize() returns the total messageSize to send.
 void process()
          process() is general processing method for each thinc messages.
 void putMessage(java.nio.ByteBuffer b)
          putMessage() puts request type, 0 for unused field,and list of supported format, respectively.
 
Methods inherited from class ThincCMsgInitRequest
getMsgType
 
Methods inherited from class ThincCMsg
getFlag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INIT_MESSAGE_TYPE

public static final int INIT_MESSAGE_TYPE
See Also:
Constant Field Values

MESSAGE_SIZE

public static final int MESSAGE_SIZE
See Also:
Constant Field Values

FMT_MESSAGE_SIZE

public static final int FMT_MESSAGE_SIZE
See Also:
Constant Field Values
Constructor Detail

ThincCMsgInitRequestVideoClientFormat

public ThincCMsgInitRequestVideoClientFormat(ThincMsgHandler h,
                                             ThincClientCanvas c)
creates ThincCMsgInitRequestVideoClientFormat object.

Parameters:
h - ThincMsgHandler to handle the message
c - ThincClientCanvas to get the information
Method Detail

putMessage

public void putMessage(java.nio.ByteBuffer b)
putMessage() puts request type, 0 for unused field,and list of supported format, respectively.

Specified by:
putMessage in class ThincCMsg
Parameters:
b - ByteBuffer object to send

messageSize

public short messageSize()
Description copied from class: ThincCMsg
messageSize() returns the total messageSize to send.

Specified by:
messageSize in class ThincCMsg
Returns:
total messageSize refered from ThincMsgHandler class

headerSize

public short headerSize()
Description copied from class: ThincCMsg
headerSize() returns the header size of the client message. different from messageSize() method, it only returns the header of total messages. If you want to send more than thinc header to the server, override this method and put the proper header size onto overriden method.

Overrides:
headerSize in class ThincCMsg
Returns:
header size of message
See Also:
ThincCMsgInitRequestVideoClientFormat

process

public void process()
             throws ThincException
Description copied from class: ThincMsg
process() is general processing method for each thinc messages. Most of client messages, it simply invokes send() methods in ThincMsgHandler object to send the client messages. In server messages, it interacts with ThincClientCanvas in this method.

Specified by:
process in class ThincMsg
Throws:
ThincException