chiark / gitweb /
working on compiling out of troglodyte; before relegage maskmap
[chiark-tcl.git] / dgram / dgram.tct
index 63337b4..3c56b76 100644 (file)
@@ -1,17 +1,24 @@
-Table addrmap AddrMap_SubCommand
-       lookup
-               map     constv(&addrmap_type)
-               addr    hb
-               ?def    obj
-               =>      obj
-       amend-range
-               map     addrmapv
-               start   hb
-               end     hb
-               data    obj
-       amend-mask
-               map     addrmapv
-               prefix  hb
-               preflen obj
-               data    obj
+Type sockaddr:                 SockAddr_Value @
+Init sockaddr                  sockaddr_clear(&@);
 
+Table toplevel TopLevel_Command
+       dgram-socket
+               subcmd  enum(DgramSocket_SubCommand,"dgram-socket subcommand")
+               ...     obj
+       tuntap-socket-raw
+           subcmd enum(TunSocket_SubCommand,"tuntap-socket-raw subcommand")
+           ... obj
+
+Table dgram_socket DgramSocket_SubCommand
+       create
+               local   sockaddr
+               =>      iddata(&dgram_socks)
+       close
+               sock    iddata(&dgram_socks)
+       transmit
+               sock    iddata(&dgram_socks)
+               data    hb
+               remote  sockaddr
+       on-receive
+               sock    iddata(&dgram_socks)
+               ?script obj