| 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.kernel |
The kernel package is the heart of the JME networking module
and controls the routing and dispatch of message data over
different transport implementations.
|
| com.jme3.network.kernel.tcp | |
| com.jme3.network.kernel.udp |
| Modifier and Type | Method and Description |
|---|---|
static <T> Filter<T> |
Filters.equalTo(T value)
Creates a filter that returns true for inputs that are .equals()
equivalent to the specified value.
|
static <T> Filter<T> |
Filters.in(java.util.Collection<? extends T> collection)
Creates a filter that returns true for any value in the specified
collection and false for all other cases.
|
static <T> Filter<T> |
Filters.in(T... values)
Creates a filter that returns true for any value in the specified
list of values and false for all other cases.
|
static <T> Filter<T> |
Filters.not(Filter<T> f)
Creates a filter that returns true when the specified delegate filter
returns false, and vice versa.
|
static <T> Filter<T> |
Filters.notEqualTo(T value)
Creates a filter that returns true for inputs that are NOT .equals()
equivalent to the specified value.
|
static <T> Filter<T> |
Filters.notIn(java.util.Collection<? extends T> collection)
Creates a filter that returns true for any value NOT in the specified
collection and false for all other cases.
|
static <T> Filter<T> |
Filters.notIn(T... values)
Creates a filter that returns true for any value NOT in the specified
list of values and false for all other cases.
|
| 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.
|
static <T> Filter<T> |
Filters.not(Filter<T> f)
Creates a filter that returns true when the specified delegate filter
returns false, and vice versa.
|
| Modifier and Type | Class and Description |
|---|---|
protected class |
DefaultServer.FilterAdapter |
| Modifier and Type | Method and Description |
|---|---|
void |
KernelAdapter.broadcast(Filter<? super Endpoint> filter,
java.nio.ByteBuffer data,
boolean reliable,
boolean copy) |
void |
DefaultServer.broadcast(Filter<? super HostedConnection> filter,
Message message) |
void |
DefaultServer.broadcast(int channel,
Filter<? super HostedConnection> filter,
Message message) |
| Constructor and Description |
|---|
DefaultServer.FilterAdapter(Filter<? super HostedConnection> delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
Kernel.broadcast(Filter<? super Endpoint> filter,
java.nio.ByteBuffer data,
boolean reliable,
boolean copy)
Dispatches the data to all endpoints managed by the
kernel that match the specified endpoint filter..
|
| Modifier and Type | Method and Description |
|---|---|
void |
SelectorKernel.broadcast(Filter<? super Endpoint> filter,
java.nio.ByteBuffer data,
boolean reliable,
boolean copy) |
| Modifier and Type | Method and Description |
|---|---|
void |
UdpKernel.broadcast(Filter<? super Endpoint> filter,
java.nio.ByteBuffer data,
boolean reliable,
boolean copy)
Dispatches the data to all endpoints managed by the
kernel.
|