tarnet
  • Documentation
    • Introduction
    • Installation
    • How to Use
      • Configurations
        • SocketConfig
        • MessageConfig
        • ClientValidationConfig
      • SocketBuilder
        • SetSocketConfig
        • SetMessageConfig
        • SetClientValidationConfig
        • BuildServer
        • BuildClient
      • ISocketServer
        • Start
        • Stop
        • SendMessageAsync
      • ISocketClient
        • Connect
        • Disconnect
        • SendMessageAsync
      • IServerConnectionsProvider
        • GetConnectedClients
        • GetConnectionUsageRate
  • Logs
    • Change Log
      • v1.0.3
      • v1.0.2
      • v1.0.1
Powered by GitBook
On this page
  1. Documentation
  2. How to Use
  3. SocketBuilder

SetSocketConfig

SocketBuilder SetSocketConfig(SocketConfig config)
  • Description: This method sets the socket configuration for the builder. It allows you to define the IP address, port number, and server capacity for the socket server/client connection.

  • Parameters:

    • config (SocketConfig): A configuration object that holds the socket settings, including the IP address, port number, and the maximum number of clients the server can handle.

  • Returns: SocketBuilder: Returns the SocketBuilder instance itself, enabling method chaining for further configuration.

PreviousSocketBuilderNextSetMessageConfig

Last updated 5 months ago