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
| 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 |
leaseHandler
protected final Component.Importer leaseHandler
- The lease request handler (imported).
NetworkIO
public NetworkIO(Environment env)
- Constructs a new network I/O factory.
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