13.6 Networking
13.6.1 TCP
13.6.2 UDP
On this page:
Port  Number
Listen  Port  Number
Network  Wait
Network  Wait.all
Network  Wait.enable_  break
8.16.0.2

13.6 Networking🔗ℹ

 import: rhombus/network package: rhombus-lib

Rhombus’s core networking facilities are provided by the rhombus/network module.

    13.6.1 TCP

    13.6.2 UDP

annotation

PortNumber

 

annotation

ListenPortNumber

 

enumeration

enum NetworkWait:

  all

  enable_break

A PortNumber is a Int.in(1, 65535). A ListenPortNumber is a Int.in(0, 65535), where 0 indicates that the operating system should chose an ephemeral port number.

The NetworkWait enumeration is used by various networking functions to enable breaks or not.