Skip to main content

Operations Reference

The full value tables for the three enums inside Manifest: op (Operation), og (Originator), and code (OpCode).

op โ€” Operationโ€‹

Identifies what the message is doing:

ValueEnumSent ByDescription
0PINGAnyHeartbeat check โ€” verify the daemon or a client is alive
1INITClientInitial handshake โ€” client introduces itself and requests configuration
2SENDAppClientApplication sending a payload for network simulation
3FETCHSimClientSimulator requesting a payload to route through the simulated network
4POSTSimClientSimulator reporting a payload has arrived at its destination
5RECEIVEAppClientApplication requesting a payload that has arrived from the simulator
6FORWARDDaemonDaemon proactively pushing a message to a client (PUSH mode only)
7EXITClientClient gracefully disconnecting from the daemon

og โ€” Originatorโ€‹

Identifies which side sent the message:

ValueEnumMeaning
0DAEMONSent by the NSB Daemon
1APP_CLIENTSent by an NSBAppClient
2SIM_CLIENTSent by an NSBSimClient

code โ€” OpCodeโ€‹

Provides additional context about the message's intent or response status:

ValueEnumMeaning
0SUCCESSThe operation succeeded
1FAILUREThe operation failed
2CLIENT_REQUESTThis message is a request from a client
3DAEMON_RESPONSEThis message is a response from the daemon
4IMPLICIT_TARGETDestination is inferred (e.g. "receive for self")
5EXPLICIT_TARGETDestination was explicitly specified
6MESSAGEThe response carries a payload
7NO_MESSAGEThe response has no payload (nothing available)

Go Deeperโ€‹