Refactor/repair tcp.prs and tcp.rkt
This commit is contained in:
parent
5850c5b06d
commit
afe36c630d
12
tcp.prs
12
tcp.prs
|
@ -14,14 +14,12 @@ ActiveSocket =
|
|||
.
|
||||
|
||||
Socket =
|
||||
/ Credit
|
||||
/ <line @text string @mode LineMode>
|
||||
/ <data @payload bytes>
|
||||
/ <credit @amount CreditAmount @mode Mode>
|
||||
/ <data @payload bytes @mode Mode>
|
||||
/ <eof>
|
||||
.
|
||||
|
||||
LineMode = =lf / =crlf .
|
||||
|
||||
Credit = <credit @amount CreditAmount @unit CreditMode>.
|
||||
CreditMode = =bytes / @lines LineMode .
|
||||
CreditAmount = @count int / @unbounded =unbounded .
|
||||
|
||||
Mode = =bytes / @lines LineMode .
|
||||
LineMode = =lf / =crlf .
|
||||
|
|
Loading…
Reference in New Issue