Class ThincSMsgInitReplyVideoServerFormat

java.lang.Object
  extended by ThincMsg
      extended by ThincSMsg
          extended by ThincSMsgInit
              extended by ThincSMsgInitReply
                  extended by ThincSMsgInitReplyVideoServerFormat

public final class ThincSMsgInitReplyVideoServerFormat
extends ThincSMsgInitReply

class for receving video format from the server. the ThincMsgInitReplyHandler will send the ThincCMsgInitRequestClientFormat to notify the client supported video format.

Author:
Young Jin Yoon
See Also:
ThincSMsgInitReply

Field Summary
static int FMT_MESSAGE_SIZE
           
static int INIT_MESSAGE_TYPE
           
static int MESSAGE_SIZE
           
 
Fields inherited from class ThincSMsgInitReply
MESSAGE_TYPE
 
Fields inherited from class ThincSMsgInit
client
 
Fields inherited from class ThincMsg
canvas, handler
 
Constructor Summary
ThincSMsgInitReplyVideoServerFormat(ThincClient tc, ThincMsgHandler h, ThincClientCanvas cs)
          creates ThincSMsgInitReplyVideoServerFormat object.
 
Method Summary
 void process()
          process() receive every supported format from the server and use bitwise & operator to get client supported format correspond with server. finally, ThincMsgInitReplyHandler sends ThincCMsgInitRequestClientFormat to notify the client supported video format by using sendNextMessage() method.
 
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

ThincSMsgInitReplyVideoServerFormat

public ThincSMsgInitReplyVideoServerFormat(ThincClient tc,
                                           ThincMsgHandler h,
                                           ThincClientCanvas cs)
creates ThincSMsgInitReplyVideoServerFormat object.

Parameters:
tc - ThincClient to get the information for handshaking.
h - ThincMsgHandler to handle the message
cs - ThincClientCanvas to get the information
Method Detail

process

public void process()
             throws ThincException
process() receive every supported format from the server and use bitwise & operator to get client supported format correspond with server. finally, ThincMsgInitReplyHandler sends ThincCMsgInitRequestClientFormat to notify the client supported video format by using sendNextMessage() method.

Specified by:
process in class ThincMsg
Throws:
ThincException