|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ClientChannelListener
Listener for events relating to a ClientChannel.
When the server adds a client session to a channel, the client's
ServerSessionListener's joinedChannel method is invoked with
that client channel, returning the client's ClientChannelListener
for the channel. A ClientChannelListener for a client channel
is notified as follows:
receivedMessage method is
invoked with the channel and the message. The listener is
notified of messages that its client sends on its associated channel;
that is, a sender receives its own broadcasts.leftChannel method is invoked
with the channel. Once a client has been removed from a channel, that
client can no longer send messages on that channel.
| Method Summary | |
|---|---|
void |
leftChannel(ClientChannel channel)
Notifies this listener that the associated client was removed from the specified channel. |
void |
receivedMessage(ClientChannel channel,
ByteBuffer message)
Notifies this listener that the specified message was
received on the specified channel. |
| Method Detail |
|---|
void receivedMessage(ClientChannel channel,
ByteBuffer message)
message was
received on the specified channel. This listener is
notified of messages that its associated client sends.
If the message originated from a client, the server-side application
may have altered the message (for application-specific
reasons) from the original message sent.
channel - a client channelmessage - a messagevoid leftChannel(ClientChannel channel)
channel. The associated client can no longer
send messages on the specified channel.
channel - a client channel
|
RedDwarf, Version 0.10.0 2010-02-12 09:11:07 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||