| Package | Description |
|---|---|
| com.jme3.network |
The network package contains the public API for the jME3
SpiderMonkey networking module.
|
| com.jme3.network.base | |
| com.jme3.network.rmi | |
| com.jme3.network.service | |
| com.jme3.network.service.rmi | |
| com.jme3.network.service.serializer |
| Modifier and Type | Method and Description |
|---|---|
static Server |
Network.createServer(int port)
Creates a Server that will utilize both reliable and fast
transports to communicate with clients.
|
static Server |
Network.createServer(int tcpPort,
int udpPort)
Creates a Server that will utilize both reliable and fast
transports to communicate with clients.
|
static Server |
Network.createServer(java.lang.String gameName,
int version,
int tcpPort,
int udpPort)
Creates a named and versioned Server that will utilize both reliable and fast
transports to communicate with clients.
|
Server |
HostedConnection.getServer()
Returns the Server instance that is hosting this connection.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ConnectionListener.connectionAdded(Server server,
HostedConnection conn)
Called when a connection has been added to the specified server and
is fully setup.
|
void |
ConnectionListener.connectionRemoved(Server server,
HostedConnection conn)
Called when a connection has been removed from the specified
server.
|
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultServer
A default implementation of the Server interface that delegates
its network connectivity to kernel.Kernel.
|
| Modifier and Type | Method and Description |
|---|---|
Server |
DefaultServer.Connection.getServer() |
| Modifier and Type | Method and Description |
|---|---|
void |
ObjectStore.ServerEventHandler.connectionAdded(Server server,
HostedConnection conn) |
void |
ObjectStore.ServerEventHandler.connectionRemoved(Server server,
HostedConnection conn) |
| Constructor and Description |
|---|
ObjectStore(Server server) |
| Modifier and Type | Method and Description |
|---|---|
Server |
HostedServiceManager.getServer()
Returns the network Server associated with this HostedServiceManager.
|
protected Server |
AbstractHostedService.getServer()
Returns the server for this hosted service or null if
the service is not yet attached.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractHostedConnectionService.connectionAdded(Server server,
HostedConnection hc)
Called internally when a new connection is detected for
the server.
|
void |
HostedServiceManager.ConnectionObserver.connectionAdded(Server server,
HostedConnection hc) |
void |
AbstractHostedService.connectionAdded(Server server,
HostedConnection hc)
Default implementation does nothing.
|
void |
AbstractHostedConnectionService.connectionRemoved(Server server,
HostedConnection hc)
Called internally when an existing connection is leaving
the server.
|
void |
HostedServiceManager.ConnectionObserver.connectionRemoved(Server server,
HostedConnection hc) |
void |
AbstractHostedService.connectionRemoved(Server server,
HostedConnection hc)
Default implementation does nothing.
|
| Constructor and Description |
|---|
HostedServiceManager(Server server)
Creates a HostedServiceManager for the specified network Server.
|
| Modifier and Type | Method and Description |
|---|---|
void |
RmiHostedService.connectionAdded(Server server,
HostedConnection hc)
Called internally when a new connection is detected for
the server.
|
void |
RmiHostedService.connectionRemoved(Server server,
HostedConnection hc)
Called internally when an existing connection is leaving
the server.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ServerSerializerRegistrationsService.connectionAdded(Server server,
HostedConnection hc) |