| 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.serializer |
| Modifier and Type | Interface and Description |
|---|---|
interface |
NetworkClient
A Client whose network connection information can
be provided post-creation.
|
| Modifier and Type | Class and Description |
|---|---|
protected static class |
Network.NetworkClientImpl |
| Modifier and Type | Method and Description |
|---|---|
static Client |
Network.connectToServer(java.lang.String host,
int hostPort)
Creates a Client that communicates with the specified host and port
using both reliable and fast transports.
|
static Client |
Network.connectToServer(java.lang.String host,
int hostPort,
int remoteUdpPort)
Creates a Client that communicates with the specified host and separate TCP and UDP ports
using both reliable and fast transports.
|
static Client |
Network.connectToServer(java.lang.String gameName,
int version,
java.lang.String host,
int hostPort)
Creates a Client that communicates with the specified host and port
using both reliable and fast transports.
|
static Client |
Network.connectToServer(java.lang.String gameName,
int version,
java.lang.String host,
int hostPort,
int remoteUdpPort)
Creates a Client that communicates with the specified host and and separate TCP and UDP ports
using both reliable and fast transports.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ClientStateListener.clientConnected(Client c)
Called when the specified client is fully connected to
the remote server.
|
void |
ClientStateListener.clientDisconnected(Client c,
ClientStateListener.DisconnectInfo info)
Called when the client has disconnected from the remote
server.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Client.addErrorListener(ErrorListener<? super Client> listener)
Adds a listener that will be notified when any connection errors
occur.
|
void |
Client.addMessageListener(MessageListener<? super Client> listener)
Adds a listener that will be notified when any message or object
is received from the server.
|
void |
Client.addMessageListener(MessageListener<? super Client> listener,
java.lang.Class... classes)
Adds a listener that will be notified when messages of the specified
types are received.
|
void |
Client.removeErrorListener(ErrorListener<? super Client> listener)
Removes a previously registered error listener.
|
void |
Client.removeMessageListener(MessageListener<? super Client> listener)
Removes a previously registered wildcard listener.
|
void |
Client.removeMessageListener(MessageListener<? super Client> listener,
java.lang.Class... classes)
Removes a previously registered type-specific listener from
the specified types.
|
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultClient
A default implementation of the Client interface that delegates
its network connectivity to a kernel.Connector.
|
| Modifier and Type | Method and Description |
|---|---|
void |
DefaultClient.addErrorListener(ErrorListener<? super Client> listener) |
void |
DefaultClient.addMessageListener(MessageListener<? super Client> listener) |
void |
DefaultClient.addMessageListener(MessageListener<? super Client> listener,
java.lang.Class... classes) |
void |
DefaultClient.removeErrorListener(ErrorListener<? super Client> listener) |
void |
DefaultClient.removeMessageListener(MessageListener<? super Client> listener) |
void |
DefaultClient.removeMessageListener(MessageListener<? super Client> listener,
java.lang.Class... classes) |
| Modifier and Type | Method and Description |
|---|---|
void |
ObjectStore.ClientEventHandler.clientConnected(Client c) |
void |
ObjectStore.ClientEventHandler.clientDisconnected(Client c,
ClientStateListener.DisconnectInfo info) |
| Constructor and Description |
|---|
ObjectStore(Client client) |
| Modifier and Type | Method and Description |
|---|---|
Client |
ClientServiceManager.getClient()
Returns the network Client associated with this ClientServiceManager.
|
protected Client |
AbstractClientService.getClient()
Returns the client for this client service or null if
the service is not yet attached.
|
| Constructor and Description |
|---|
ClientServiceManager(Client client)
Creates a new ClientServiceManager for the specified network Client.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ClientSerializerRegistrationsService.messageReceived(Client source,
Message m) |