net.kano.joscar.rvproto.rvproxy
Class RvProxyAckCmd

java.lang.Object
  extended byRvProxyCmd
      extended byRvProxyAckCmd

public class RvProxyAckCmd
extends RvProxyCmd

A RV Proxy command indicating that the initialization of an AOL Proxy Server connection is complete and the user on the receiving end may be told to connect.

Source of this RV Proxy command:
AOL Proxy Server

Constructor Summary
  RvProxyAckCmd(java.net.Inet4Address ip, int port)
          Creates a new outgoing RV proxy connection acknowledgement command with the given proxy server IP address and "port" values.
protected RvProxyAckCmd(RvProxyPacket header)
          Creates a new RV proxy connection acknowledgement command from the given incoming RV proxy connection acknowledgement packet.
 
Method Summary
 java.net.Inet4Address getProxyIpAddress()
          Returns the proxy's IP address, as sent in this command.
 int getProxyPort()
          Returns a "port" value to send to the "receiving user."
 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

RvProxyAckCmd

protected RvProxyAckCmd(RvProxyPacket header)
Creates a new RV proxy connection acknowledgement command from the given incoming RV proxy connection acknowledgement packet.

Parameters:
header - an incoming connection acknowledgement packet

RvProxyAckCmd

public RvProxyAckCmd(java.net.Inet4Address ip,
                     int port)
Creates a new outgoing RV proxy connection acknowledgement command with the given proxy server IP address and "port" values.

Parameters:
ip - the IP address for the "receiving user" (the user to whom an AOL Proxy Server connection invitation is being sent) to connect to to begin the connection
port - a "port" value for the receiving user to send in its RvProxyInitRecvCmd
Method Detail

getProxyIpAddress

public final java.net.Inet4Address getProxyIpAddress()
Returns the proxy's IP address, as sent in this command. This value should be sent to the "receiving user" (the user to whom an AOL Proxy Server connection invitation is being sent) as the IP address to which that user should connect.

Returns:
the AOL Proxy Server's IP address, as sent in this command

getProxyPort

public final int getProxyPort()
Returns a "port" value to send to the "receiving user." (The "receiving user" is the user to whom an AOL Proxy Server connection invitation is being sent.) As of this writing, the significance of this value is not known (it is not the port on which the user should connect to the proxy server; that port appears to always be 5190). What is known is that this value must be passed by the receiving user in his RvProxyInitRecvCmd (once again as the "port" value).

Returns:
the "port" value used to send to the receiving user

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()