com.stepsoncats.gublists
Class InetReq
java.lang.Object
|
+--com.stepsoncats.gublists.InetReq
- public class InetReq
- extends java.lang.Object
An InetReq encapsulates an instance of Internet transmission activity, e.g.,
a datagram that has been received or is to be transmitted.
Each InetReq contains the host Internet address and port number of the
destination or origin of the indicated activity, depending on whether
the object represents data reception or data transmission. Subclasses
of InetReq are expected to extend it with application-specific transmission
content.
Constructor Summary |
InetReq(java.net.InetAddress host,
int portNbr)
Construct an InetReq tagged with a specified Internet host and port
number. |
Method Summary |
java.net.InetAddress |
getHost()
Return the host InetAddress associated with this InetReq. |
int |
getPortNbr()
Return the port number associated with this InetReq. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InetReq
public InetReq(java.net.InetAddress host,
int portNbr)
- Construct an InetReq tagged with a specified Internet host and port
number.
getHost
public java.net.InetAddress getHost()
- Return the host InetAddress associated with this InetReq.
- Returns:
- The InetAddress of the host machine associated with this
InetReq.
getPortNbr
public int getPortNbr()
- Return the port number associated with this InetReq.
- Returns:
- The protocol port number associated with this InetReq.
Copyright 2003 Steps On Cats