Class ServerInfo
Sent from server, in response to RequestServerInfo. Contains server name, message version, ping information, etc...
Implements
Namespace: Buttplug.Core.Messages
Assembly: Buttplug.dll
Syntax
public class ServerInfo : ButtplugMessage, IButtplugMessageOutgoingOnly
Constructors
ServerInfo(String, UInt32, UInt32, UInt32)
Initializes a new instance of the ServerInfo class.
Declaration
public ServerInfo(string serverName, uint messageVersion, uint maxPingTime, uint id = null)
Parameters
| Type | Name | Description |
|---|---|---|
| String | serverName | Server name. |
| UInt32 | messageVersion | Server message schema version. |
| UInt32 | maxPingTime | Ping timeout. |
| UInt32 | id | Message ID. |
Fields
MaxPingTime
Expected ping time (in milliseconds).
Declaration
public uint MaxPingTime
Field Value
| Type | Description |
|---|---|
| UInt32 |
MessageVersion
The schema version of the server. Must be greater or equal to version client reported in RequestServerInfo.
Declaration
public uint MessageVersion
Field Value
| Type | Description |
|---|---|
| UInt32 |
ServerName
Server name.
Declaration
public string ServerName
Field Value
| Type | Description |
|---|---|
| String |