Daemon Network API - Set

Network

Sets for modifying network identity, mode, and group configuration.

Pixotope-Network-CustomDirectorUpdate [SET]

Pixotope-Network-CustomDirectorUpdate

Updates the broadcaster identity fields (display name, encryption flag, backup IP) and immediately sends a UDP broadcast with the updated info to all machines on the network.

Value

Name

STRING

The display name of this machine's service (e.g. "Store", "Server").

Encrypted

OPTIONAL

(default: disabled)

STRING

Whether encrypted mode is active. Defaults to `"disabled"`.

BackupIp

OPTIONAL
STRING

Optional backup IP address for this machine. Defaults to empty string.

Example - Update broadcaster identity

Request (you send)

JSON
{
  "Type": "Set",
  "Target": "<MachineName>-Daemon",
  "Name": "Pixotope-Network-CustomDirectorUpdate"
}
JSON
{
  "Values": {
    "Name": "Store",
    "Encrypted": "disabled",
    "BackupIp": ""
  }
}
UpdateServerGroupInfo [SET]

UpdateServerGroupInfo

Assigns this machine to a machine group and marks the network options as ready to broadcast. Immediately sends a UDP broadcast with the updated group info.

Value

ServerMachineGroup

OPTIONAL

(default: default)

STRING

The machine group name. Defaults to `"default"`.

DissalowConnection

OPTIONAL

(default: false)

BOOLEAN

Whether to prevent other machines from connecting to this one.

Example - Assign the machine to a group

Request (you send)

JSON
{
  "Type": "Set",
  "Target": "<MachineName>-Daemon",
  "Name": "UpdateServerGroupInfo"
}
JSON
{
  "Values": {
    "ServerMachineGroup": "production",
    "DissalowConnection": false
  }
}
Pixotope-Network-NetworkInfoUpdate [SET]

Pixotope-Network-NetworkInfoUpdate

Updates the network adapter IP, netmask, and mode for this machine. Recalculates the broadcast address and publishes the new `BroadcastInfo` update to all subscribers.

Value

Mode

STRING

Network mode (e.g. `"Primary"` or `"Secondary"`).

Ip

STRING

Network adapter IP address.

Netmask

STRING

Network subnet mask.

Example - Update network adapter settings

Request (you send)

JSON
{
  "Type": "Set",
  "Target": "<MachineName>-Daemon",
  "Name": "Pixotope-Network-NetworkInfoUpdate"
}
JSON
{
  "Values": {
    "Mode": "Primary",
    "Ip": "192.168.1.5",
    "Netmask": "255.255.255.0"
  }
}

Response (you receive)

JSON
{
  "Type": "Update",
  "Source": "<MachineName>-Daemon",
  "Target": "Broadcast",
  "Name": "BroadcastInfo"
}
JSON
{
  "Broadcast": "192.168.1.255",
  "NetworkAdapter": "192.168.1.5",
  "Netmask": "255.255.255.0",
  "Mode": "Primary"
}