DefaultServerConnectionConfig

class DefaultServerConnectionConfig(val host: String = DEFAULT_HOST, val port: Int = DEFAULT_PORT, val waitConnection: Boolean = DEFAULT_WAIT_CONNECTION) : ServerConnectionConfig(source)

Default implementation of the server connection configuration.

This class provides configuration settings for setting up a server connection, extending the ServerConnectionConfig base class. It initializes the server port configuration to a default value unless explicitly specified.

Parameters

host

The hostname or IP address of the server to connect to. Defaults to '127.0.0.1';

port

The port number on which the server will listen to. Defaults to 50881;

waitConnection

Indicates whether the server waits for a first connection before continuing. Set to 'false' by default.

Constructors

Link copied to clipboard
constructor(host: String = DEFAULT_HOST, port: Int = DEFAULT_PORT, waitConnection: Boolean = DEFAULT_WAIT_CONNECTION)

Types

Link copied to clipboard
object Companion

Contains default configurations for server connection parameters.

Properties

Link copied to clipboard

The host on which the server will listen to;

Link copied to clipboard

Provides access to the current JSON serialization and deserialization configuration.

Link copied to clipboard
val port: Int

The port number on which the server will listen to;

Link copied to clipboard

Indicates whether the server waits for a first connection before continuing.

Functions

Link copied to clipboard

Appends the specified serializers module to the existing JSON configuration. This method allows dynamic addition of custom serialization and deserialization logic by merging the provided module with the current serializers module.