CRecordTcpServer
This record is a data record, which means that it only contains data. It is used by the record CRecordTcpGetServerList. It contains the description of a single TCP server.
{
"id": "c3ce266b-011a-4424-8270-c423b58802a2",
"name": "TCP_SERVER",
"isNanoService": "false",
"type": "DATA_RECORD",
"hasOtherSlots": "false",
"description": "A TCP server.",
"slots": [
{
"key": "1",
"name": "ID",
"type": "UUID",
"description": "The ID."
},
{
"key": "2",
"name": "PORT",
"type": "INT",
"description": "The port."
},
{
"key": "3",
"name": "TLS_ENABLED",
"type": "BOOLEAN",
"description": "True if this is a TLS socket."
},
{
"key": "4",
"name": "TLS_PROTOCOLS",
"type": "STRING",
"description": "The TLS protocol. Default: TLSv1.3"
},
{
"key": "5",
"name": "TLS_CIPHER_SUITES",
"type": "STRING",
"description": "The TLS cipher suite. Default: TLS_AES_128_GCM_SHA256"
},
{
"key": "6",
"name": "INPUT_BUFFER_SIZE",
"type": "INT",
"description": "The input buffer size."
}
]
}
Slot Description
| Key | Name | Type | Description |
|---|---|---|---|
| 1 | ID | UUID | The ID of the server. |
| 2 | PORT | INT | The port. |
| 3 | TLS_ENABLED | BOOLEAN | True if this is a TLS socket. |
| 4 | TLS_PROTOCOLS | STRING | The TLS protocol. Default: TLSv1.3. |
| 5 | TLS_CIPHER_SUITES | STRING | The TLS cipher suite. Default: TLS_AES_128_GCM_SHA256. |
| 6 | INPUT_BUFFER_SIZE | INT | The input buffer size. |
Record Usage
In
One or more descriptions of these Records are stored in the JSON or XML format
as record.json or record.xml within a directory.
The Record Generator, an included Swing tool, generates helper classes from these files.
These classes can then be used to type-safely write or read messages.