syndicate-protocols/tcp.prs

26 lines
570 B
Plaintext
Raw Normal View History

2021-06-10 08:00:43 +00:00
version 1 .
embeddedType EntityRef.Ref .
Connection = <connection @handle #!ActiveSocket @spec any>.
ConnectionPeer = <connection-peer @handle #!ActiveSocket @spec any>.
TcpRemote = <remote @host string @port int>.
TcpLocal = <local @host string @port int>.
2021-06-10 08:00:43 +00:00
ActiveSocket =
/ <controller @controller #!Sink>
/ <close @message string>
2021-06-10 08:00:43 +00:00
/ Socket
.
Socket =
2021-06-11 13:29:12 +00:00
/ <credit @amount CreditAmount @mode Mode>
/ <data @payload bytes @mode Mode>
/ <eof>
.
CreditAmount = @count int / @unbounded =unbounded .
2021-06-11 13:29:12 +00:00
Mode = =bytes / @lines LineMode .
LineMode = =lf / =crlf .