| 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.message | |
| com.jme3.network.rmi | |
| com.jme3.network.service.rpc.msg | |
| com.jme3.network.service.serializer | |
| com.jme3.network.util |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractMessage
Interface implemented by all network messages.
|
| Modifier and Type | Method and Description |
|---|---|
Message |
AbstractMessage.setReliable(boolean f)
Sets this message to 'reliable' or not and returns this
message.
|
Message |
Message.setReliable(boolean f)
Sets this message to 'reliable' or not and returns this
message.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Server.broadcast(Filter<? super HostedConnection> filter,
Message message)
Sends the specified message to all connected clients that match
the filter.
|
void |
Server.broadcast(int channel,
Filter<? super HostedConnection> filter,
Message message)
Sends the specified message over the specified alternate channel to all connected
clients that match the filter.
|
void |
Server.broadcast(Message message)
Sends the specified message to all connected clients.
|
void |
MessageListener.messageReceived(S source,
Message m) |
void |
Client.send(int channel,
Message message)
Sends a message to the other end of the connection using
the specified alternate channel.
|
void |
MessageConnection.send(int channel,
Message message)
Sends a message to the other end of the connection using
the specified alternate channel.
|
void |
Client.send(Message message)
Sends a message to the server.
|
void |
MessageConnection.send(Message message)
Sends a message to the other end of the connection.
|
| Modifier and Type | Method and Description |
|---|---|
Message |
MessageProtocol.getMessage()
Retrieves and removes an extracted message from the accumulated buffer
or returns null if there are no more messages.
|
| Modifier and Type | Method and Description |
|---|---|
void |
DefaultServer.broadcast(Filter<? super HostedConnection> filter,
Message message) |
void |
DefaultServer.broadcast(int channel,
Filter<? super HostedConnection> filter,
Message message) |
void |
DefaultServer.broadcast(Message message) |
protected void |
KernelAdapter.dispatch(Endpoint p,
Message m)
Note on threading for those writing their own server
or adapter implementations.
|
protected void |
DefaultServer.dispatch(HostedConnection source,
Message m) |
protected void |
ConnectorAdapter.dispatch(Message m) |
protected void |
DefaultClient.dispatch(Message m) |
void |
DefaultServer.Redispatch.messageReceived(HostedConnection source,
Message m) |
void |
DefaultClient.Redispatch.messageReceived(java.lang.Object source,
Message m) |
void |
MessageListenerRegistry.messageReceived(S source,
Message m) |
static java.nio.ByteBuffer |
MessageProtocol.messageToBuffer(Message message,
java.nio.ByteBuffer target)
Converts a message to a ByteBuffer using the Serializer
and the (short length) + data protocol.
|
void |
DefaultClient.send(int channel,
Message message) |
void |
DefaultServer.Connection.send(int channel,
Message message) |
protected void |
DefaultClient.send(int channel,
Message message,
boolean waitForConnected) |
void |
DefaultClient.send(Message message) |
void |
DefaultServer.Connection.send(Message message) |
| Modifier and Type | Class and Description |
|---|---|
class |
ChannelInfoMessage
Contains information about any extra server channels (if they exist).
|
class |
ClientRegistrationMessage
Client registration is a message that contains a unique ID.
|
class |
CompressedMessage
CompressedMessage is a base class for all messages that
compress others.
|
class |
DisconnectMessage
Represents a disconnect message.
|
class |
GZIPCompressedMessage
GZIPCompressedMessage is the class that you need to use should you want to
compress a message using Gzip.
|
class |
SerializerRegistrationsMessage
Holds a compiled set of message registration information that
can be sent over the wire.
|
class |
ZIPCompressedMessage
Compress a message using this ZIPCompressedMessage class
|
| Modifier and Type | Method and Description |
|---|---|
Message |
CompressedMessage.getMessage() |
| Modifier and Type | Method and Description |
|---|---|
void |
CompressedMessage.setMessage(Message message) |
| Constructor and Description |
|---|
CompressedMessage(Message msg) |
GZIPCompressedMessage(Message msg) |
ZIPCompressedMessage(Message msg) |
ZIPCompressedMessage(Message msg,
int level) |
| Modifier and Type | Class and Description |
|---|---|
class |
RemoteMethodCallMessage
Sent to a remote client to make a remote method invocation.
|
class |
RemoteMethodReturnMessage
Contains the return value for a remote method invocation, sent as a response
to a
RemoteMethodCallMessage with a non-zero invocationID. |
class |
RemoteObjectDefMessage
Sent to expose RMI interfaces on the local client to other clients.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ObjectStore.ServerEventHandler.messageReceived(HostedConnection source,
Message m) |
void |
ObjectStore.ClientEventHandler.messageReceived(java.lang.Object source,
Message m) |
| Modifier and Type | Class and Description |
|---|---|
class |
RpcCallMessage
Used internally to send RPC call information to
the other end of a connection for execution.
|
class |
RpcResponseMessage
Used internally to send an RPC call's response back to
the caller.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ClientSerializerRegistrationsService.messageReceived(Client source,
Message m) |
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractMessageDelegator.messageReceived(S source,
Message msg)
Implementation of the MessageListener's messageReceived()
method that will use the current message type mapping to
find an appropriate message handling method and call it
on the delegate returned by getSourceDelegate().
|