Skip to main content

Module network

Module network 

Source
Expand description

The network file: the keys and PAN ids the bridge runs, in the data directory, readable by its owner only. The bridge writes it with random values on first start; a platform that manages keys writes it before.

Constants§

FILE
The file’s name in the data directory.

Functions§

from_backup
The network a backup describes.
load_or_create
Read the network file, or create it with channel and random ids and key when there is none.
restrict
Make a file readable by its owner only.
save
Write the network file (mode 0600 on Unix).