| Modifier and Type | Method and Description |
|---|---|
MessageRecognizer |
Session.getMessageRecognizer()
Returns the
MessageRecognizerwho recognizes the incoming data
from this session. |
MessageRecognizer |
SessionServer.getMessageRecognizer()
Returns the
MessageRecognizerthat will be passed to newly
created sessions' constructor. |
| Modifier and Type | Method and Description |
|---|---|
void |
Session.setMessageRecognizer(MessageRecognizer messageRecognizer)
Sets the
MessageRecognizerwho recognizes the incoming data from
this session. |
void |
SessionServer.setMessageRecognizer(MessageRecognizer messageRecognizer)
Sets the
MessageRecognizerthat will be passed to newly created
sessions' constructor. |
| Constructor and Description |
|---|
Session(IoProcessor ioProcessor,
java.net.SocketAddress socketAddress,
MessageRecognizer messageRecognizer,
EventDispatcher eventDispatcher)
Constructs a new session that connects to the specified socket address
with the default settings.
|
Session(IoProcessor ioProcessor,
java.net.SocketAddress socketAddress,
MessageRecognizer messageRecognizer,
EventDispatcher eventDispatcher,
SessionConfig config)
Constructs a new session that connects to the specified socket address
with the specified settings.
|
Session(IoProcessor ioProcessor,
java.nio.channels.SocketChannel channel,
MessageRecognizer messageRecognizer,
EventDispatcher eventDispatcher)
Constructs a new session with the specified channel and with the default
settings.
|
Session(IoProcessor ioProcessor,
java.nio.channels.SocketChannel channel,
MessageRecognizer messageRecognizer,
EventDispatcher eventDispatcher,
SessionConfig config)
Constructs a new session with the specified channel and with the
specified settings.
|
Copyright © 2004-2012 Trustin Lee. All Rights Reserved.