aboutsummaryrefslogtreecommitdiffstats
path: root/include/gbos.inc
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/gbos.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/gbos.inc b/include/gbos.inc
index 937d083..e9f8d7d 100644
--- a/include/gbos.inc
+++ b/include/gbos.inc
@@ -153,6 +153,9 @@ DEF NET_CLOSE EQU 4 ; NR_SOCK
DEF NET_BIND EQU 5 ; NR_SOCK, NR_PORT -> bind local port (UDP)
DEF NET_POLL EQU 6 ; pump RX once (answer pings) -> A=0
DEF NET_SETIP EQU 7 ; set our IPv4 address from NR_IP (DHCP)
+DEF NET_RECVNB EQU 8 ; like NET_RECV but never blocks: pump once, then
+ ; A=len if a datagram was buffered, $FE if none yet,
+ ; 0 on TCP EOF. Lets programs own their timeouts (ping).
; socket types
DEF SOCK_ICMP EQU 1
DEF SOCK_UDP EQU 2