| Package | Description |
|---|---|
| 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 |
|---|---|
boolean |
DefaultServer.FilterAdapter.apply(Endpoint input) |
protected void |
DefaultServer.connectionClosed(Endpoint p) |
protected void |
KernelAdapter.connectionClosed(Endpoint p) |
protected void |
KernelAdapter.dispatch(Endpoint p,
Message m)
Note on threading for those writing their own server
or adapter implementations.
|
protected HostedConnection |
DefaultServer.getConnection(Endpoint endpoint) |
protected HostedConnection |
KernelAdapter.getConnection(Endpoint p) |
protected MessageProtocol |
KernelAdapter.getMessageBuffer(Endpoint p) |
protected void |
DefaultServer.registerClient(KernelAdapter ka,
Endpoint p,
ClientRegistrationMessage m) |
protected void |
DefaultServer.removeConnecting(Endpoint p) |
protected void |
KernelAdapter.reportError(Endpoint p,
java.lang.Object context,
java.lang.Exception e) |
| Modifier and Type | Method and Description |
|---|---|
void |
KernelAdapter.broadcast(Filter<? super Endpoint> filter,
java.nio.ByteBuffer data,
boolean reliable,
boolean copy) |
| Modifier and Type | Method and Description |
|---|---|
Endpoint |
EndpointEvent.getEndpoint() |
Endpoint |
Envelope.getSource() |
| Modifier and Type | Method and Description |
|---|---|
static EndpointEvent |
EndpointEvent.createAdd(Kernel source,
Endpoint p) |
static EndpointEvent |
EndpointEvent.createRemove(Kernel source,
Endpoint p) |
| 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..
|
| Constructor and Description |
|---|
EndpointEvent(Kernel source,
Endpoint p,
EndpointEvent.Type type) |
Envelope(Endpoint source,
byte[] data,
boolean reliable)
Creates an incoming envelope holding the data from the specified
source.
|
| Modifier and Type | Class and Description |
|---|---|
class |
NioEndpoint
Endpoint implementation that encapsulates the
channel IO based connection information and keeps
track of the outbound data queue for the channel.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SelectorKernel.broadcast(Filter<? super Endpoint> filter,
java.nio.ByteBuffer data,
boolean reliable,
boolean copy) |
| Modifier and Type | Class and Description |
|---|---|
class |
UdpEndpoint
Endpoint implementation that encapsulates the
UDP connection information for return messaging,
identification of envelope sources, etc.
|
| Modifier and Type | Method and Description |
|---|---|
protected Endpoint |
UdpKernel.getEndpoint(java.net.SocketAddress address,
boolean create) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
UdpKernel.enqueueWrite(Endpoint endpoint,
java.net.DatagramPacket packet) |
| 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.
|
| Constructor and Description |
|---|
UdpKernel.MessageWriter(Endpoint endpoint,
java.net.DatagramPacket packet) |