|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
public interface NetworkClient
A Client whose network connection information can be provided post-creation. The actual connection stack will be setup the same as if Network.connectToServer had been called.
メソッドの概要 | |
---|---|
void |
connectToServer(java.net.InetAddress address,
int port,
int remoteUdpPort)
Connects this client to the specified remote server and ports. |
void |
connectToServer(java.lang.String host,
int port,
int remoteUdpPort)
Connects this client to the specified remote server and ports. |
インタフェース com.jme3.network.Client から継承されたメソッド |
---|
addClientStateListener, addErrorListener, addMessageListener, addMessageListener, close, getGameName, getId, getVersion, isConnected, removeClientStateListener, removeErrorListener, removeMessageListener, removeMessageListener, send, start |
メソッドの詳細 |
---|
void connectToServer(java.lang.String host, int port, int remoteUdpPort) throws java.io.IOException
java.io.IOException
void connectToServer(java.net.InetAddress address, int port, int remoteUdpPort) throws java.io.IOException
address
- The hosts internet address.tcpPort
- The remote TCP port on the server to which this client should
send reliable messages.udpPort
- The remote UDP port on the server to which this client should
send 'fast'/unreliable messages. Set to -1 if 'fast' traffic should
go over TCP. This will completely disable UDP traffic for this
client.
java.io.IOException
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |