Browse Source

Credit-based flow control on tcp driver; line mode

main
Tony Garnock-Jones 1 year ago
parent
commit
5850c5b06d
  1. 14
      tcp.prs

14
tcp.prs

@ -13,5 +13,15 @@ ActiveSocket = @@ -13,5 +13,15 @@ ActiveSocket =
/ Socket
.
; TODO: <credit @amount int>
Socket = <data @payload bytes>.
Socket =
/ Credit
/ <line @text string @mode LineMode>
/ <data @payload bytes>
/ <eof>
.
LineMode = =lf / =crlf .
Credit = <credit @amount CreditAmount @unit CreditMode>.
CreditMode = =bytes / @lines LineMode .
CreditAmount = @count int / @unbounded =unbounded .

Loading…
Cancel
Save