one.world.io
Class NetworkIO

java.lang.Object
  |
  +--one.world.core.Component
        |
        +--one.world.io.NetworkIO
All Implemented Interfaces:
Serializable

public class NetworkIO
extends Component

A factory for network I/O clients and servers.

Imported and Exported Event Handlers

Exported event handler:

bind
Handles BindingRequests by binding a new network I/O resource, either a NetworkIO.Client or a NetworkIO.Server. The binding request must have a SioResource as its descriptor. The resulting BindingResponse will have a new Client or Server as the resource and the SioResource as the descriptor. The construction of a server may spin off further BindingResponses containing Clients. The descriptors for each of the clients will give the remote address and port in the form of a SioResource. Exceptional conditions include UnknownHostException and IOException.

Version:
$Revision: 1.61 $
See Also:
Serialized Form

Inner Class Summary
protected  class NetworkIO.BindHandler
          The event handler for the network I/O factory.
protected  class NetworkIO.Client
          A reliable network I/O client.
protected static class NetworkIO.Server
          Accepts connections at a local IP address and TCP port.
 
Inner classes inherited from class one.world.core.Component
Component.HandlerReference, Component.Importer
 
Field Summary
protected  Component.Importer leaseHandler
          The lease request handler (imported).
 
Constructor Summary
NetworkIO(Environment env)
          Constructs a new network I/O factory.
 
Method Summary
 ComponentDescriptor getDescriptor()
          Gets the component descriptor.
 
Methods inherited from class one.world.core.Component
declareExported, declareImported, equals, eventHandlers, getDescriptor, getEnvironment, getLinkedHandlers, getLinkedNumber, getTimer, hasEventHandler, hashCode, isFullyLinked, isLinked, isSealed, link, link, run, seal, unbox, undeclare, unlink, wrap
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

leaseHandler

protected final Component.Importer leaseHandler
The lease request handler (imported).
Constructor Detail

NetworkIO

public NetworkIO(Environment env)
Constructs a new network I/O factory.
Method Detail

getDescriptor

public ComponentDescriptor getDescriptor()
Gets the component descriptor.
Overrides:
getDescriptor in class Component
Following copied from class: one.world.core.Component
Returns:
The component descriptor for this component.


(C) Copyright 2001 UW CSE