| java.lang.Object org.w3c.www.protocol.http.icp.ICPSender
ICPSender | class ICPSender (Code) | | |
Field Summary | |
protected InetAddress | addr Our target host address. | protected byte | buffer The buffer to emit messages. | protected ICPFilter | filter The filter we are attached to. | protected int | port Our target port number. | protected URL | proxy The HTTP service provided by the target ICP host. |
Method Summary | |
final public InetAddress | getAddress() Get the ICP address for this neighbor. | final public int | getPort() Get the port number for that sender target. | final public URL | getProxyLocation() Get the HTTP service location of that sender. | public boolean | send(ICPMessage msg) Send the given ICP message to our target host.
Parameters: msg - The ICP message to send. | public String | toString() Return a String representation of this sender. |
buffer | protected byte buffer(Code) | | The buffer to emit messages.
|
port | protected int port(Code) | | Our target port number.
|
proxy | protected URL proxy(Code) | | The HTTP service provided by the target ICP host.
|
ICPSender | ICPSender(ICPFilter filter, int srcport, InetAddress addr, int dstport, URL proxy) throws SocketException(Code) | | Create a ICPSender to query the given host.
Parameters: addr - The InetAddress of the ICP host. Parameters: port - The port number it is listening on. exception: SocketException - If we couldn't create the datagram socket. |
getAddress | final public InetAddress getAddress()(Code) | | Get the ICP address for this neighbor.
An InetAddress instance. |
getPort | final public int getPort()(Code) | | Get the port number for that sender target.
An integer port number. |
getProxyLocation | final public URL getProxyLocation()(Code) | | Get the HTTP service location of that sender.
The HTTP service location, as a URL. |
send | public boolean send(ICPMessage msg)(Code) | | Send the given ICP message to our target host.
Parameters: msg - The ICP message to send. A boolean, true if message was emitted. |
toString | public String toString()(Code) | | Return a String representation of this sender.
A String. |
|
|