com.limegroup.gnutella.messages
Class QueryReply.PushProxyContainer

java.lang.Object
  extended bycom.limegroup.gnutella.messages.QueryReply.PushProxyContainer
All Implemented Interfaces:
PushProxyInterface
Enclosing class:
QueryReply

public static class QueryReply.PushProxyContainer
extends java.lang.Object
implements PushProxyInterface

A simple utility class for doling out PushProxy information.


Constructor Summary
QueryReply.PushProxyContainer(byte[] fromNetwork)
           
QueryReply.PushProxyContainer(java.lang.String hostAddress, int port)
           
 
Method Summary
 boolean equals(java.lang.Object other)
           
 java.net.InetAddress getPushProxyAddress()
           
 int getPushProxyPort()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryReply.PushProxyContainer

public QueryReply.PushProxyContainer(java.lang.String hostAddress,
                                     int port)
                              throws java.net.UnknownHostException

QueryReply.PushProxyContainer

public QueryReply.PushProxyContainer(byte[] fromNetwork)
                              throws BadPacketException
Method Detail

getPushProxyPort

public int getPushProxyPort()
Specified by:
getPushProxyPort in interface PushProxyInterface
Returns:
a non-negative integer representing the proxy's port for UDP communication.

getPushProxyAddress

public java.net.InetAddress getPushProxyAddress()
Specified by:
getPushProxyAddress in interface PushProxyInterface
Returns:
the InetAddress of the PushProxyHost host

equals

public boolean equals(java.lang.Object other)

hashCode

public int hashCode()