โ Back to Index
๐ Login
startMKDatalinkNodeServer
[ ] Denna sida รคr inte markerad som klar
Handles communication between client and database.
Declaration
function startMKDatalinkNodeServer(port = 3921)
Long Description
Primitive
Configure
System
- Nginx reverse proxy to the MKDatalinkServer.
- Systemd service file
User
Execute
Initialize
Operate
Awaits connections and delegates to the right plugin.
Uses a protocol clients must format data by in sending data to MKDatalinkServer.
Protocol as follows:
- Data is received by MKDatalinkServer in binary.
- The two first bytes comprises the ID of the plugin the client desires to invoke. Thus, this 16-bit value, stored in the two first bytes, is one of 0 to 65,535.
- The rest of data after the two first byes is payload and MKDatalinkServer does not handle it, only passes it to the target plugin.
The server responds:
- With the output of the plugin.
- Or with these errors: [...]
Finalize
Data
State
- startMKDatalinkNodeServer does not produce any state data, and neither do the plugins.
Artifact
The plugins may produce state and artifact data.
Metadata