syndicate-protocols/tcp.prs

26 lines
578 B
Plaintext

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 @message string>
/ Socket
.
Socket =
/ <credit @amount CreditAmount @mode Mode>
/ <data @payload bytes @mode Mode>
/ <eof>
.
CreditAmount = @count int / @unbounded =unbounded .
Mode = =bytes / @lines LineMode .
LineMode = =lf / =crlf .