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 =
|
Socket =
|
||||||
/ Credit
|
/ <credit @amount CreditAmount @mode Mode>
|
||||||
/ <line @text string @mode LineMode>
|
/ <data @payload bytes @mode Mode>
|
||||||
/ <data @payload bytes>
|
|
||||||
/ <eof>
|
/ <eof>
|
||||||
.
|
.
|
||||||
|
|
||||||
LineMode = =lf / =crlf .
|
|
||||||
|
|
||||||
Credit = <credit @amount CreditAmount @unit CreditMode>.
|
|
||||||
CreditMode = =bytes / @lines LineMode .
|
|
||||||
CreditAmount = @count int / @unbounded =unbounded .
|
CreditAmount = @count int / @unbounded =unbounded .
|
||||||
|
|
||||||
|
Mode = =bytes / @lines LineMode .
|
||||||
|
LineMode = =lf / =crlf .
|
||||||
|
|
Loading…
Reference in New Issue