All Packages This Package Class Hierarchy Class Search Index
Class kh.net.SocketIdentifier
java.lang.Object
|
+----kh.net.SocketIdentifier
public class SocketIdentifier
extends java.lang.Object
implements java.io.Serializable
{
// Fields 2
public InetAddress address;
public int port;
// Constructors 1
public SocketIdentifier(InetAddress, int);
// Methods 2
public Socket connect() throws IOException;
public String toString();
}
A wrapper class to encapsulate the state which makes up a port
address (InetAddress + portNum)
- Returned By:
- AcceptingSocket.getIdentifier()
public InetAddress address
public int port
public SocketIdentifier(InetAddress addr,
int portNum)
public Socket connect() throws IOException
Creates a new socket and connects the socket specified by this
identifier.
public String toString()
- Overrides:
- toString in class Object
All Packages This Package Class Hierarchy Class Search Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7