tricu

A lazy functional language based on Tree Calculus
Log | Files | Refs | README | LICENSE

b842a39f410e28c89c843ac8f1d3a8db7afa2e11a5ce12bf5c29193a6fb6b3c6.tri (501B)


      1 !import io_v2 as IO
      2 !export *
      3 
      4 -- Scoped TCP facilities. Owner arguments and Result replies are explicit;
      5 -- sockets are resources, not reusable numeric descriptors or detached workers.
      6 ipv4 = IO.ipv4
      7 ipv6 = IO.ipv6
      8 resolveTCP = IO.resolveTCP
      9 listenTCP = IO.listenTCP
     10 connectTCP = IO.connectTCP
     11 acceptTCP = IO.acceptTCP
     12 localAddress = IO.localAddress
     13 peerAddress = IO.peerAddress
     14 shutdownWrite = IO.shutdownWrite
     15 readSome = IO.readSome
     16 writeSome = IO.writeSome
     17 writeAll = IO.writeAll
     18 close = IO.close