net.kano.joscar.rvproto.rvproxy
Class RvProxyInitSendCmd

java.lang.Object
  extended byRvProxyCmd
      extended byRvProxyInitSendCmd

public class RvProxyInitSendCmd
extends RvProxyCmd

An RV Proxy command sent upon connecting to an AOL Proxy Server when initiating a proxy-based connection.

Source of this RV Proxy command:
AIM client

Constructor Summary
protected RvProxyInitSendCmd(RvProxyPacket header)
          Reads an RV proxy connection initialization command from the given incoming RV proxy packet.
  RvProxyInitSendCmd(java.lang.String sn, long icbmMessageId)
          Creates a new outgoing RV proxy initialization command with the given initiating screenname and ICBM message ID "cookie."
 
Method Summary
 long getIcbmMessageId()
          Returns the ICBM message ID "cookie" sent in this command.
 java.lang.String getScreenname()
          Returns the screenname field contained in this command.
 java.lang.String toString()
           
 void writeCommandData(java.io.OutputStream out)
          Writes this command's raw "command-specific data" to the given stream.
 
Methods inherited from class RvProxyCmd
getCommandType, getFlags, getPacketVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RvProxyInitSendCmd

protected RvProxyInitSendCmd(RvProxyPacket header)
Reads an RV proxy connection initialization command from the given incoming RV proxy packet.

Parameters:
header - an incoming connection initialization RV proxy packet

RvProxyInitSendCmd

public RvProxyInitSendCmd(java.lang.String sn,
                          long icbmMessageId)
Creates a new outgoing RV proxy initialization command with the given initiating screenname and ICBM message ID "cookie."

Parameters:
sn - the screenname of the user initializing this connection (that is, your client's screenname)
icbmMessageId - the ICBM message ID of the rendezvous request command sent to request the associated proxied connection
Method Detail

getScreenname

public final java.lang.String getScreenname()
Returns the screenname field contained in this command. This value will normally be the screenname of the user connecting to the proxy (that is, the connecting client's screenname).

Returns:
the connecting client's screenname

getIcbmMessageId

public final long getIcbmMessageId()
Returns the ICBM message ID "cookie" sent in this command. This is a "cookie" that appears to be used to allow the server to pair up two users connecting to the AOL proxy server to form a connection. In practice, this value is the ICBM message ID of the RV ICBM used to request the associated connection (such as a file transfer request).

Returns:
this command's ICBM message ID "cookie"

writeCommandData

public void writeCommandData(java.io.OutputStream out)
                      throws java.io.IOException
Description copied from class: RvProxyCmd
Writes this command's raw "command-specific data" to the given stream.

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

toString

public java.lang.String toString()