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

SetClientValidationConfig

SocketBuilder SetClientValidationConfig(ClientValidationConfig config)
  • Description: This method sets the client validation configuration for the builder. It allows you to define the authentication key and specify IP whitelists and blacklists for server-client communication.

  • Parameters:

    • config (ClientValidationConfig): A configuration object that contains the authentication key and lists of allowed and denied IP addresses for client validation.

  • Returns: SocketBuilder: Returns the SocketBuilder instance, enabling method chaining.

PreviousSetMessageConfigNextBuildServer

Last updated 5 months ago