Class SocketBuilderFactory


  • public final class SocketBuilderFactory
    extends Object
    Given a NetworkConfiguration and a socket address, creates the appropriate socket builder
    • Constructor Detail

      • SocketBuilderFactory

        public SocketBuilderFactory()
    • Method Detail

      • createBuilder

        public static SocketBuilder createBuilder​(NetworkConfiguration config,
                                                  SocketAddress address)
        Creates a new socket builder for the given configuration. Note that NetworkConfiguration currently assumes one configuration for all client connections. We may at some point extend this.
        Parameters:
        config - the network configuration.
        address - the socket address
        Returns:
        a new socket builder