|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectcom.jme3.network.kernel.udp.UdpConnector
public class UdpConnector
A straight forward datagram socket-based UDP connector implementation.
| コンストラクタの概要 | |
|---|---|
UdpConnector(java.net.InetAddress remote,
int remotePort)
Creates a new UDP connection that send datagrams to the specified address and port. |
|
| メソッドの概要 | |
|---|---|
boolean |
available()
This always returns false since the simple DatagramSocket usage cannot be run in a non-blocking way. |
void |
close()
Closes the connection. |
boolean |
isConnected()
Returns true if this connector is currently connected. |
java.nio.ByteBuffer |
read()
Reads a chunk of data from the connection, blocking if there is no data available. |
void |
write(java.nio.ByteBuffer data)
Writes a chunk of data to the connection from data.position() to data.limit(). |
| クラス java.lang.Object から継承されたメソッド |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public UdpConnector(java.net.InetAddress remote,
int remotePort)
throws java.io.IOException
java.io.IOException| メソッドの詳細 |
|---|
public boolean isConnected()
Connector の記述:
Connector 内の isConnectedpublic void close()
Connector の記述:
Connector 内の closepublic boolean available()
Connector 内の availablepublic java.nio.ByteBuffer read()
Connector の記述:
Connector 内の readpublic void write(java.nio.ByteBuffer data)
Connector の記述:
Connector 内の write
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||