module Netamqp_types:sig
..end
typechannel =
int
typetransport_type =
[ `TCP | `TLS ]
typeframe_type =
[ `Body | `Header | `Heartbeat | `Method | `Proto_header ]
type
frame = {
|
frame_type : |
|
frame_channel : |
|
frame_payload : |
The frame_payload
may be based on strings or bigarrays. The
current implementation will always use the string-based
representation for received frames ( - in the future this might
become configurable). For sent frames both representations are
supported equally well.
For a type `Proto_header
, the payload consists of the three
bytes describing the protocol version (major version, minor
version, revision).
exception Decode_error of string
exception Encode_error of string
exception Not_connected
`Connected
state and cannot accept new
requestsexception Timeout
exception Method_dropped
exception Unexpected_eof
exception Method_cannot_be_dispatched of channel * string
exception Unexpected_frame of frame
exception Method_exception of string * int * string
connection.close
or channel.close
method
First arg: name of method
exception Protocol_is_not_supported
exception Protocol_violation of string
val string_of_frame_type : frame_type -> string