Beginnings of a TCP driver

This commit is contained in:
Tony Garnock-Jones 2021-06-10 10:00:43 +02:00
parent 201f5433e1
commit 8b5e74048e
1 changed files with 17 additions and 0 deletions

17
tcp.prs Normal file
View File

@ -0,0 +1,17 @@
version 1 .
embeddedType EntityRef.Ref .
Connection = <connection @handle #!ActiveSocket @spec any>.
ConnectionPeer = <connection-peer @handle #!ActiveSocket @spec any>.
TcpOutbound = <outbound @host string @port int>.
TcpInbound = <inbound @host string @port int>.
ActiveSocket =
/ <controller @controller #!Sink>
/ <close @reason any>
/ Socket
.
; TODO: <credit @amount int>
Socket = <data @payload bytes>.