Libraries
bignum
binary
bitmap
ble
bytes
core
crypto
device
encoding
esp32
expect
fixed-point
flash
font
gpio
i2c
i2s
icons
io
line-wrap
log
math
monitor
net
pulse-counter
reader
reader-writer
rmt
serial
spi
statistics
system
api
cellular
containers
ethernet
firmware
log
network
print
service-discovery
storage
trace
wifi
assets
base
containers
external
firmware
services
storage
trace
tls
uart
uuid
writer
zlib
Interface NetworkService
Interface summary
Constructors
Statics
Methods
Fields
SELECTOR
->
any
TAG-CELLULAR
->
string
List of common tags that providers of
NetworkService
may use to make their services easier to distinguish.
TAG-ETHERNET
->
string
TAG-WIFI
->
string
PROXY-NONE
->
int
Proxy mask bits that indicate which operations must be proxied through the service. See
connect
.
PROXY-ADDRESS
->
int
PROXY-RESOLVE
->
int
PROXY-UDP
->
int
PROXY-TCP
->
int
PROXY-QUARANTINE
->
int
SOCKET-OPTION-UDP-BROADCAST
->
int
The socket options can be read or written using
socket-get-option
and
socket-set-option
.
SOCKET-OPTION-UDP-MULTICAST-MEMBERSHIP
->
int
SOCKET-OPTION-UDP-MULTICAST-LOOPBACK
->
int
SOCKET-OPTION-UDP-MULTICAST-TTL
->
int
SOCKET-OPTION-UDP-REUSE-ADDRESS
->
int
SOCKET-OPTION-UDP-REUSE-PORT
->
int
SOCKET-OPTION-UDP-MULTICAST-IF
->
int
SOCKET-OPTION-UDP-MULTICAST-LEAVE
->
int
SOCKET-OPTION-TCP-NO-DELAY
->
int
NOTIFY-CLOSED
->
int
The notification constants are used as arguments to
ServiceResource.notify_
and consequently
ServiceResourceProxy.on-notified_
.
CONNECT-INDEX
->
int
ADDRESS-INDEX
->
int
RESOLVE-INDEX
->
int
QUARANTINE-INDEX
->
int
UDP-OPEN-INDEX
->
int
UDP-OPEN-MULTICAST-INDEX
->
int
UDP-CONNECT-INDEX
->
int
UDP-RECEIVE-INDEX
->
int
UDP-SEND-INDEX
->
int
TCP-CONNECT-INDEX
->
int
TCP-LISTEN-INDEX
->
int
TCP-ACCEPT-INDEX
->
int
TCP-CLOSE-WRITE-INDEX
->
int
SOCKET-GET-OPTION-INDEX
->
int
SOCKET-SET-OPTION-INDEX
->
int
SOCKET-LOCAL-ADDRESS-INDEX
->
int
SOCKET-PEER-ADDRESS-INDEX
->
int
SOCKET-READ-INDEX
->
int
SOCKET-WRITE-INDEX
->
int
SOCKET-MTU-INDEX
->
int
Statics
ADDRESS-INDEX
->
int
CONNECT-INDEX
->
int
NOTIFY-CLOSED
->
int
The notification constants are used as arguments to
ServiceResource.notify_
and consequently
ServiceResourceProxy.on-notified_
.
PROXY-ADDRESS
->
int
PROXY-NONE
->
int
Proxy mask bits that indicate which operations must be proxied through the service. See
connect
.
PROXY-QUARANTINE
->
int
PROXY-RESOLVE
->
int
PROXY-TCP
->
int
PROXY-UDP
->
int
QUARANTINE-INDEX
->
int
RESOLVE-INDEX
->
int
SELECTOR
->
any
SOCKET-GET-OPTION-INDEX
->
int
SOCKET-LOCAL-ADDRESS-INDEX
->
int
SOCKET-MTU-INDEX
->
int
SOCKET-OPTION-TCP-NO-DELAY
->
int
SOCKET-OPTION-UDP-BROADCAST
->
int
The socket options can be read or written using
socket-get-option
and
socket-set-option
.
SOCKET-OPTION-UDP-MULTICAST-IF
->
int
SOCKET-OPTION-UDP-MULTICAST-LEAVE
->
int
SOCKET-OPTION-UDP-MULTICAST-LOOPBACK
->
int
SOCKET-OPTION-UDP-MULTICAST-MEMBERSHIP
->
int
SOCKET-OPTION-UDP-MULTICAST-TTL
->
int
SOCKET-OPTION-UDP-REUSE-ADDRESS
->
int
SOCKET-OPTION-UDP-REUSE-PORT
->
int
SOCKET-PEER-ADDRESS-INDEX
->
int
SOCKET-READ-INDEX
->
int
SOCKET-SET-OPTION-INDEX
->
int
SOCKET-WRITE-INDEX
->
int
TAG-CELLULAR
->
string
List of common tags that providers of
NetworkService
may use to make their services easier to distinguish.
TAG-ETHERNET
->
string
TAG-WIFI
->
string
TCP-ACCEPT-INDEX
->
int
TCP-CLOSE-WRITE-INDEX
->
int
TCP-CONNECT-INDEX
->
int
TCP-LISTEN-INDEX
->
int
UDP-CONNECT-INDEX
->
int
UDP-OPEN-INDEX
->
int
UDP-OPEN-MULTICAST-INDEX
->
int
UDP-RECEIVE-INDEX
->
int
UDP-SEND-INDEX
->
int
Methods
address
handle/
int
->
ByteArray
connect
->
List
quarantine
name/
string
->
none
resolve
handle/
int
host/
string
->
List
socket-get-option
handle/
int
option/
int
->
any
socket-local-address
handle/
int
->
List
socket-mtu
handle/
int
->
int
socket-peer-address
handle/
int
->
List
socket-read
handle/
int
->
ByteArray
socket-set-option
handle/
int
option/
int
value/
any
->
none
socket-write
handle/
int
data/
any
->
int
tcp-accept
handle/
int
->
int
tcp-close-write
handle/
int
->
none
tcp-connect
handle/
int
ip/
ByteArray
port/
int
->
int
tcp-listen
handle/
int
port/
int
->
int
udp-connect
handle/
int
ip/
ByteArray
port/
int
->
none
udp-open
handle/
int
port/
int
->
int
udp-open-multicast
handle/
int
address/
ByteArray
port/
int
if-addr/
ByteArray
reuse-address/
bool
reuse-port/
bool
loopback/
bool
ttl/
int
->
int
udp-receive
handle/
int
->
List
udp-send
handle/
int
data/
ByteArray
ip/
ByteArray
port/
int
->
none