initial work on an ambitious library

This commit is contained in:
2026-04-07 20:07:24 +02:00
parent 21cd1fa4e6
commit 46c9bc8d42
2 changed files with 151 additions and 4 deletions

View File

@@ -1662,14 +1662,10 @@ typedef nn_Exit (nn_ModemHandler)(nn_ModemRequest *req);
nn_Component *nn_createModem(nn_Universe *universe, const char *address, const nn_Modem *modem, void *state, nn_ModemHandler *handler);
typedef struct nn_Tunnel {
// maximum range. Set to 0 for wired modems
size_t maxRange;
// maximum values in a packet
size_t maxValues;
// maximum logical packet size. Note that the encoding is more efficient than the packet size algorithm estimates
size_t maxPacketSize;
// the maximum amount of open ports
size_t maxOpenPorts;
} nn_Tunnel;
extern nn_Tunnel nn_defaultTunnel;