Modifier and Type | Field and Description |
---|---|
static Map<InetSocketAddress,Session> |
NettyUDPClient.CLIENTS
This map is used to store the local address to which a session has bound
itself using the
Channel.bind(java.net.SocketAddress)
method. |
Modifier and Type | Method and Description |
---|---|
org.jboss.netty.channel.ChannelFuture |
NettyUDPClient.connect(Session session,
org.jboss.netty.channel.socket.DatagramChannel datagramChannel)
This method will connect the datagram channel with the server and send
the
Events.CONNECT message to server. |
org.jboss.netty.channel.ChannelFuture |
NettyUDPClient.connect(Session session,
org.jboss.netty.channel.socket.DatagramChannel datagramChannel,
InetSocketAddress serverAddress,
int timeout,
TimeUnit unit)
This method will connect the datagram channel with the server and send
the
Events.CONNECT message to server. |
Modifier and Type | Interface and Description |
---|---|
interface |
PlayerSession
This interface abstracts a user session to a
Game . |
Modifier and Type | Class and Description |
---|---|
class |
DefaultPlayerSession
This implementation of the
PlayerSession interface is used to both
receive and send messages to a particular player using the
Event DefaultSession.onEvent(Event) . |
class |
DefaultSession
The default implementation of the session class.
|
Modifier and Type | Method and Description |
---|---|
Session |
DefaultSession.SessionBuilder.build() |
Session |
SessionFactory.createAndConnectSession()
Creates a
Session and connects it to the remote jetserver. |
Session |
SessionFactory.createSession() |
Modifier and Type | Method and Description |
---|---|
void |
SessionFactory.connectSession(Session session)
Connects the session to remote jetserver.
|
Modifier and Type | Method and Description |
---|---|
Session |
SessionEventHandler.getSession() |
Modifier and Type | Method and Description |
---|---|
boolean |
EventDispatcher.removeHandlersForSession(Session session)
Removes all the handlers for a session.
|
Modifier and Type | Field and Description |
---|---|
private Session |
AbstractSessionEventHandler.session |
Modifier and Type | Method and Description |
---|---|
Session |
AbstractSessionEventHandler.getSession() |
Modifier and Type | Method and Description |
---|---|
boolean |
DefaultEventDispatcher.removeHandlersForSession(Session session) |
Constructor and Description |
---|
AbstractSessionEventHandler(Session session) |
Modifier and Type | Field and Description |
---|---|
private Session |
DefaultToClientHandler.session |
Constructor and Description |
---|
DefaultToClientHandler(Session session) |
TCPPipelineFactory(Session session) |
Copyright © 2012. All Rights Reserved.