|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectcom.jme3.network.connection.Connection
com.jme3.network.connection.UDPConnection
public class UDPConnection
The UDPConnection
handles all UDP traffic.
コンストラクタの概要 | |
---|---|
UDPConnection(java.lang.String label)
|
メソッドの概要 | |
---|---|
void |
accept(java.nio.channels.SelectableChannel channel)
Accept an incoming connection. |
void |
bind(java.net.SocketAddress address)
Bind to an address. |
void |
cleanup()
Called when the connection implementation should clean up. |
void |
connect(java.nio.channels.SelectableChannel channel)
Finish the connection. |
void |
connect(java.net.SocketAddress address)
Connect to a server using this overload. |
void |
read(java.nio.channels.SelectableChannel channel)
Read from the channel. |
void |
sendObject(Client client,
java.lang.Object object)
Send an object to the connector. |
void |
sendObject(java.lang.Object object)
Send an object to the server. |
void |
write(java.nio.channels.SelectableChannel channel)
Write to a channel. |
クラス com.jme3.network.connection.Connection から継承されたメソッド |
---|
addConnectionListener, addConnectorFilter, addMessageListener, addMessageListener, addToDisconnectionQueue, getConnectors, getLocalConnectors, isAlive, removeConnectionListener, removeConnectorFilter, removeMessageListener, removeMessageListener, run, shouldFilterConnector |
クラス java.lang.Object から継承されたメソッド |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public UDPConnection(java.lang.String label)
メソッドの詳細 |
---|
public void connect(java.net.SocketAddress address) throws java.io.IOException
Connection
の記述:
Connection
内の connect
address
- The address to connect to.
java.io.IOException
- When a problem occurs.public void bind(java.net.SocketAddress address) throws java.io.IOException
Connection
の記述:
Connection
内の bind
address
- The address to bind to.
java.io.IOException
- When a problem occurs.public void connect(java.nio.channels.SelectableChannel channel) throws java.io.IOException
Connection
の記述:
Connection
内の connect
channel
- The channel.
java.io.IOException
- When a problem occurs.public void accept(java.nio.channels.SelectableChannel channel) throws java.io.IOException
Connection
の記述:
Connection
内の accept
channel
- The channel.
java.io.IOException
- When a problem occurs.public void read(java.nio.channels.SelectableChannel channel) throws java.io.IOException
Connection
の記述:
Connection
内の read
channel
- The channel.
java.io.IOException
- When a problem occurs.public void sendObject(java.lang.Object object) throws java.io.IOException
Connection
の記述:
Connection
内の sendObject
object
- The object to send.
java.io.IOException
- When a writing error occurs.public void sendObject(Client client, java.lang.Object object) throws java.io.IOException
Connection
の記述:
Connection
内の sendObject
client
- The connector to send to.object
- The object to send.
java.io.IOException
- When a writing error occurs.public void cleanup() throws java.io.IOException
Connection
の記述:
Connection
内の cleanup
java.io.IOException
- When a problem occurs.public void write(java.nio.channels.SelectableChannel channel) throws java.io.IOException
Connection
の記述:
Connection
内の write
channel
- The channel to write to.
java.io.IOException
- When a problem occurs.
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |