org.iids.aos.kernel
Class Endpoint

java.lang.Object
  extended by org.iids.aos.kernel.Endpoint
All Implemented Interfaces:
java.io.Serializable

public class Endpoint
extends java.lang.Object
implements java.io.Serializable

The address of a listen port or communication endpoint.

Author:
Patrick Verkaik
See Also:
Serialized Form

Field Summary
 int port
          A port number, aka index in the AOS API specification
 java.lang.String scid
          A self-certifying ID (a SHA-1 hash), or null if omitted.
 java.net.InetSocketAddress tcpIP
          An IP address (IPv6) and a TCP port number.
 
Constructor Summary
Endpoint(java.net.InetSocketAddress tcpIP, int port, java.lang.String scid)
           
Endpoint(java.io.StreamTokenizer st)
          Creates a new instance of Endpoint
 
Method Summary
 java.lang.String marshall()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

tcpIP

public java.net.InetSocketAddress tcpIP
An IP address (IPv6) and a TCP port number. IPv4 address are in princple represented in IPv6 in the form ::ffff:w.x.y.z but Java will convert such mapped addresses to normal IPv4 addresses (e.g. Inet4Address)


port

public int port
A port number, aka index in the AOS API specification


scid

public java.lang.String scid
A self-certifying ID (a SHA-1 hash), or null if omitted.

Constructor Detail

Endpoint

public Endpoint(java.net.InetSocketAddress tcpIP,
                int port,
                java.lang.String scid)

Endpoint

public Endpoint(java.io.StreamTokenizer st)
         throws java.io.IOException
Creates a new instance of Endpoint

Throws:
java.io.IOException
Method Detail

marshall

public java.lang.String marshall()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2003, 2004 IIDS Group. All Rights Reserved.