Table of Contents

Class ClientInfo

Namespace
VpnHood.Core.Common.Messaging
Assembly
VpnHood.Core.Common.dll

Represents a client as it introduces itself to a server.

public class ClientInfo
Inheritance
ClientInfo
Inherited Members

Properties

ClientId

Gets the client's ID, the same for its every session.

public required string ClientId { get; init; }

Property Value

string

ClientVersion

Gets the client's version.

public required string ClientVersion { get; init; }

Property Value

string

MaxProtocolVersion

Gets the newest protocol version the client speaks.

public int MaxProtocolVersion { get; init; }

Property Value

int

MinProtocolVersion

Gets the oldest protocol version the client speaks.

public int MinProtocolVersion { get; init; }

Property Value

int

UserAgent

Gets the client's user agent, which names its app and platform.

public required string UserAgent { get; init; }

Property Value

string

Methods

ToString()

Writes the client's ID, as ClientId=....

public override string ToString()

Returns

string

The text.