All Packages  This Package  Class Hierarchy  Class Search  Index

Class kh.net.SocketIdentifier
java.lang.Object
   |
   +----kh.net.SocketIdentifier

  Summary

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)


  Cross Reference

Returned By:
AcceptingSocket.getIdentifier()





  Fields

· address

Summary  |  Top
   public InetAddress address


· port

Summary  |  Top
   public int port


  Constructors

· SocketIdentifier

Summary  |  Top

   public SocketIdentifier(InetAddress addr, 
                           int portNum) 


  Methods

· connect

Summary  |  Top
   public Socket connect()  throws IOException

Creates a new socket and connects the socket specified by this identifier.



· toString

Summary  |  Top
   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