|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectcom.jme3.network.kernel.tcp.SocketConnector
public class SocketConnector
A straight forward socket-based connector implementation that does not use any separate threading. It relies completely on the buffering in the OS network layer.
コンストラクタの概要 | |
---|---|
SocketConnector(java.net.InetAddress address,
int port)
|
メソッドの概要 | |
---|---|
boolean |
available()
Returns true if there is currently data available for reading. |
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 SocketConnector(java.net.InetAddress address, int port) throws java.io.IOException
java.io.IOException
メソッドの詳細 |
---|
public boolean isConnected()
Connector
の記述:
Connector
内の isConnected
public void close()
Connector
の記述:
Connector
内の close
public boolean available()
Connector
の記述:
Connector
内の available
public java.nio.ByteBuffer read()
Connector
の記述:
Connector
内の read
public void write(java.nio.ByteBuffer data)
Connector
の記述:
Connector
内の write
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |