OnePortAsynchChannelServer (ActiveIO 1.0 API)
Keywords: org.activeio.oneport.OnePortAsynchChannelServer class

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.activeio.oneport
Class OnePortAsynchChannelServer

    java.lang.Object
      org.activeio.FilterAsynchChannelServer
          org.activeio.oneport.OnePortAsynchChannelServer

All Implemented Interfaces:
  AcceptListener, AsynchChannelServer, Channel, ChannelServer, Disposable, Service

public final class OnePortAsynchChannelServer
extends FilterAsynchChannelServer

Allows multiple protocols share a single ChannelServer. All protocols sharing the server must have a distinct magic number at the beging of the client's request. TODO: handle the case where a client opens a connection but sends no data down the stream. We need to timeout that client.

Version:
  $Revision$

Field Summary

Fields inherited from class org.activeio.FilterAsynchChannelServer
`acceptListener, next`

Fields inherited from interface org.activeio.Service
`NO_WAIT_TIMEOUT, WAIT_FOREVER_TIMEOUT`

Constructor Summary
`OnePortAsynchChannelServer(AsynchChannelServer server)`

Method Summary
`AsynchChannelServer` | `bindAsynchChannel(ProtocolRecognizer recognizer)`
`void` | `setAcceptListener(AcceptListener acceptListener)` Registers an AcceptListener which is notified of accepted channels.

Methods inherited from class org.activeio.FilterAsynchChannelServer
`dispose, getBindURI, getConnectURI, narrow, onAccept, onAcceptError, start, stop, toString`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### OnePortAsynchChannelServer

    public OnePortAsynchChannelServer(AsynchChannelServer server)
                               throws java.io.IOException

Method Detail

### setAcceptListener

    public void setAcceptListener(AcceptListener acceptListener)

  Description copied from interface: `AsynchChannelServer`
  Registers an AcceptListener which is notified of accepted channels.

  Specified by:
    `setAcceptListener` in interface `AsynchChannelServer`
  Overrides:
    `setAcceptListener` in class `FilterAsynchChannelServer`

### bindAsynchChannel

    public AsynchChannelServer bindAsynchChannel(ProtocolRecognizer recognizer)
                                          throws java.io.IOException

  Throws:
    `java.io.IOException`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © -2005 The ActiveIO Project. All Rights Reserved.