|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectcom.jme3.network.connection.Connection
com.jme3.network.connection.TCPConnection
public class TCPConnection
The TCPConnection handles all traffic regarding TCP client and server.
Connection| コンストラクタの概要 | |
|---|---|
TCPConnection()
|
|
TCPConnection(java.lang.String name)
|
|
| メソッドの概要 | |
|---|---|
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 con,
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 TCPConnection(java.lang.String name)
public TCPConnection()
| メソッドの詳細 |
|---|
public void connect(java.net.SocketAddress address)
throws java.io.IOException
Connection の記述:
Connection 内の connectaddress - 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 内の bindaddress - 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 内の connectchannel - The channel.
java.io.IOException - When a problem occurs.
public void accept(java.nio.channels.SelectableChannel channel)
throws java.io.IOException
Connection の記述:
Connection 内の acceptchannel - The channel.
java.io.IOException - When a problem occurs.
public void read(java.nio.channels.SelectableChannel channel)
throws java.io.IOException
Connection の記述:
Connection 内の readchannel - The channel.
java.io.IOException - When a problem occurs.
public void sendObject(java.lang.Object object)
throws java.io.IOException
Connection の記述:
Connection 内の sendObjectobject - The object to send.
java.io.IOException - When a writing error occurs.
public void sendObject(Client con,
java.lang.Object object)
throws java.io.IOException
Connection の記述:
Connection 内の sendObjectcon - 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 内の cleanupjava.io.IOException - When a problem occurs.
public void write(java.nio.channels.SelectableChannel channel)
throws java.io.IOException
Connection の記述:
Connection 内の writechannel - The channel to write to.
java.io.IOException - When a problem occurs.
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||