|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.activeio.FilterAsynchChannelServer
org.activeio.oneport.OnePortAsynchChannelServer
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.
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 |
public OnePortAsynchChannelServer(AsynchChannelServer server) throws java.io.IOException
Method Detail |
public void setAcceptListener(AcceptListener acceptListener)
AsynchChannelServer
setAcceptListener
in interface AsynchChannelServer
setAcceptListener
in class FilterAsynchChannelServer
public AsynchChannelServer bindAsynchChannel(ProtocolRecognizer recognizer) throws java.io.IOException
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |