val allow_oversize_packets : bool Stdlib.ref
type state =
| Unknown_operation of int32 | received an unexpected message type |
| Parser_failed of string | we failed to parse a header |
| Need_more_data of int | we still need 'n' bytes |
| Packet of t | successfully decoded a packet |
val start : unit -> parse
Create a parser set to the initial state.