net.kano.joscar.snaccmd.conn
Class ClientReadyCmd

java.lang.Object
  extended bySnacCommand
      extended byConnCommand
          extended byClientReadyCmd

public class ClientReadyCmd
extends ConnCommand

A SNAC command sent to indicate that the client has finished initializing the session and is ready to "go online." This also tells the server more than the previously sent ClientVersionsCmd about your SNAC family versions.

Source of this SNAC:
AIM client
SNAC command type:
Family 0x01, command 0x02

Field Summary
 
Fields inherited from class ConnCommand
CMD_CLIENT_READY, CMD_CLIENT_VERS, CMD_ENCINFOACK, CMD_EXTRA_ACK, CMD_MIGRATE_PLS, CMD_MY_INFO_REQ, CMD_NOOP, CMD_PAUSE, CMD_PAUSE_ACK, CMD_RATE_ACK, CMD_RATE_CHG, CMD_RATE_INFO, CMD_RATE_REQ, CMD_RESUME, CMD_SERV_VERS, CMD_SERVER_READY, CMD_SERVICE_REDIR, CMD_SERVICE_REQ, CMD_SET_IDLE, CMD_SETENCINFO, CMD_SETEXTRAINFO, CMD_UPDATE, CMD_WARNED, CMD_YOUR_INFO, FAMILY_CONN, FAMILY_INFO
 
Fields inherited from class SnacCommand
SNACFLAG_DEFAULT
 
Constructor Summary
  ClientReadyCmd(SnacFamilyInfo[] infos)
          Creates a new outgoing client ready command with the given SNAC family information blocks.
protected ClientReadyCmd(SnacPacket packet)
          Creates a new client ready command from the given incoming SNAC packet.
 
Method Summary
 SnacFamilyInfo[] getSnacFamilyInfos()
          Returns the SNAC family information blocks sent with this command.
 void writeData(java.io.OutputStream out)
          Writes this command's SNAC data block to the given stream.
 
Methods inherited from class SnacCommand
getCommand, getFamily, getFlag1, getFlag2
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientReadyCmd

protected ClientReadyCmd(SnacPacket packet)
Creates a new client ready command from the given incoming SNAC packet.

Parameters:
packet - an incoming client-ready packet

ClientReadyCmd

public ClientReadyCmd(SnacFamilyInfo[] infos)
Creates a new outgoing client ready command with the given SNAC family information blocks.

Parameters:
infos - the SNAC family information blocks to send with this command
Method Detail

getSnacFamilyInfos

public final SnacFamilyInfo[] getSnacFamilyInfos()
Returns the SNAC family information blocks sent with this command.

Returns:
this command's SNAC family information blocks

writeData

public void writeData(java.io.OutputStream out)
               throws java.io.IOException
Description copied from class: SnacCommand
Writes this command's SNAC data block to the given stream. The SNAC data block is the data after the first ten bytes of a SNAC packet.

Specified by:
writeData in class SnacCommand
Parameters:
out - the stream to which to write the SNAC data
Throws:
java.io.IOException - if an I/O error occurs