Class TcpConnectorFactory
java.lang.Object
com.jme3.network.base.TcpConnectorFactory
- All Implemented Interfaces:
ConnectorFactory
Creates TCP connectors to a specific remote address.
- Author:
- Paul Speed
-
Constructor Summary
ConstructorsConstructorDescriptionTcpConnectorFactory(InetAddress remoteAddress) Creates a factory that connects to the specified remote address. -
Method Summary
Modifier and TypeMethodDescriptioncreateConnector(int channel, int port) Creates a connector for the specified channel and remote port.
-
Constructor Details
-
TcpConnectorFactory
Creates a factory that connects to the specified remote address.- Parameters:
remoteAddress- the remote address for created TCP connectors
-
-
Method Details
-
createConnector
Description copied from interface:ConnectorFactoryCreates a connector for the specified channel and remote port.- Specified by:
createConnectorin interfaceConnectorFactory- Parameters:
channel- the logical channel indexport- the remote port to connect to- Returns:
- the created connector
- Throws:
IOException- if the connector cannot be created
-