CRecordTcpCreateServer
This nano service (im Namespace SYSTEM) is run by the TCP plugin and creates a TCP server that can then be used for messaging. There is an automatic link with the layer above (plugin NY_Network).
{
"id": "27bde5b0-962d-4cc7-8c70-b5e093e91b90",
"name": "TCP_CREATE_SERVER",
"isService": "true",
"hasOtherSlots": "false",
"description": "Create and start a TCP server.",
"namespaces": "SYSTEM",
"slots": [
{
"key": "1",
"name": "ID ",
"answer": "false",
"mandatory": "true",
"type": "UUID",
"description": "The ID of the TCP server."
},
{
"key": "2",
"name": "PORT",
"answer": "false",
"mandatory": "true",
"type": "INT",
"description": "The port of the TCP server."
},
{
"key": "3",
"name": "TLS_ENABLED",
"answer": "false",
"mandatory": "false",
"type": "BOOLEAN",
"description": "True if this is a TLS socket."
},
{
"key": "4",
"name": "TLS_PROTOCOLS",
"answer": false,
"mandatory": false,
"type": "STRING",
"description": "The TLS protocol. Default: TLSv1.3"
},
{
"key": "5",
"name": "TLS_CIPHER_SUITES",
"answer": false,
"mandatory": false,
"type": "STRING",
"description": "The TLS cipher suite. Default: TLS_AES_128_GCM_SHA256"
},
{
"key": "6",
"name": "INPUT_BUFFER_SIZE",
"answer": "false",
"mandatory": "false",
"type": "INT",
"description": "The input buffer size. Default: 270000"
}
]
}
In addition to the port, an
The other specifications are optional.
To create an encrypted connection using TLS, see here: Requirement for a TLS connection.