Class Network.NetworkClientImpl

java.lang.Object
com.jme3.network.base.DefaultClient
com.jme3.network.Network.NetworkClientImpl
All Implemented Interfaces:
Client, MessageConnection, NetworkClient
Enclosing class:
Network

protected static class Network.NetworkClientImpl extends DefaultClient implements NetworkClient
  • Constructor Details

    • NetworkClientImpl

      public NetworkClientImpl(String gameName, int version)
  • Method Details

    • connectToServer

      public void connectToServer(String host, int port, int remoteUdpPort) throws IOException
      Description copied from interface: NetworkClient
      Connects this client to the specified remote server and ports.
      Specified by:
      connectToServer in interface NetworkClient
      Throws:
      IOException
    • connectToServer

      public void connectToServer(InetAddress address, int port, int remoteUdpPort) throws IOException
      Description copied from interface: NetworkClient
      Connects this client to the specified remote server and ports.
      Specified by:
      connectToServer in interface NetworkClient
      Parameters:
      address - The host's Internet address.
      port - The remote TCP port on the server to which this client should send reliable messages.
      remoteUdpPort - 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.
      Throws:
      IOException