JML

net.sf.jml.protocol.incoming
Class IncomingSYN

java.lang.Object
  extended by net.sf.jml.protocol.MsnMessage
      extended by net.sf.jml.protocol.MsnIncomingMessage
          extended by net.sf.jml.protocol.incoming.IncomingSYN

public class IncomingSYN
extends MsnIncomingMessage

The response of OutgoingSYN, indicate the contact list size and group count.

Supported Protocl: All

MSNP8/MSNP9 Syntax: SYN trId currentVersion( contactCount groupCount)

MSNP10 Syntax: SYN trId lastTimeChanged lastBeChangedTime( contactCount groupCount)

Author:
Roger Chen

Field Summary
 
Fields inherited from class net.sf.jml.protocol.MsnMessage
protocol
 
Constructor Summary
IncomingSYN(MsnProtocol protocol)
           
 
Method Summary
 int getContactCount()
           
 int getGroupCount()
           
 String getVersion()
           
protected  void messageReceived(MsnSession session)
          The message have received.
 
Methods inherited from class net.sf.jml.protocol.MsnIncomingMessage
getOutgoingMessage
 
Methods inherited from class net.sf.jml.protocol.MsnMessage
addParam, asString, clearParams, getChunkData, getCommand, getParam, getParamCount, getProtocol, getTransactionId, isSupportChunkData, isSupportTransactionId, load, save, setChunkData, setChunkData, setCommand, setParam, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IncomingSYN

public IncomingSYN(MsnProtocol protocol)
Method Detail

getVersion

public String getVersion()

getContactCount

public int getContactCount()

getGroupCount

public int getGroupCount()

messageReceived

protected void messageReceived(MsnSession session)
Description copied from class: MsnIncomingMessage
The message have received.

Overrides:
messageReceived in class MsnIncomingMessage
Parameters:
session - the MsnSession which received the message

JML