module Netamqp_channel:sig..end
The client chooses the channel number identifying the channel. It is allowed to reuse channel numbers after closing a channel.
Channels are equipped with flow control: If the server demands to send content data slower, the client will respond to this. There is no configuration necessary to enable this feature.
Channels can be closed by either peer. It is possible to transmit
error codes at channel close time.
exception Not_open
exception Error of string
typechannel =int
type channel_obj
val open_e : Netamqp_connection.connection ->
channel -> channel_obj Uq_engines.engineval open_s : Netamqp_connection.connection ->
channel -> channel_objval open_next_e : Netamqp_connection.connection ->
channel_obj Uq_engines.engine
val open_next_s : Netamqp_connection.connection -> channel_objval close_e : channel_obj -> unit Uq_engines.engineNetamqp_channel.Not_open if the
channel is not open.val close_s : channel_obj -> unitval is_open : channel_obj -> boolis_open returns true.
Checking is_open is mainly useful for recovery after exceptions.
Some exceptions close the channel, some do not.
val configure_sync_timeout : channel_obj -> float -> unitNetamqp_types.Timeout
exception.val sync_c2s_e : ?no_wait:Netamqp_endpoint.sync_server_to_client_method_t ->
channel_obj ->
Netamqp_endpoint.sync_client_initiated_method_t ->
Netamqp_endpoint.data option ->
(Netamqp_endpoint.sync_server_to_client_method_t *
Netamqp_endpoint.data option)
Uq_engines.engine
val sync_c2s_s : ?no_wait:Netamqp_endpoint.sync_server_to_client_method_t ->
channel_obj ->
Netamqp_endpoint.sync_client_initiated_method_t ->
Netamqp_endpoint.data option ->
Netamqp_endpoint.sync_server_to_client_method_t *
Netamqp_endpoint.data optionNetamqp_endpoint.sync_c2s_e, but the channel_obj
can be passed, and the right timeout handling is done for this channel.val number : channel_obj -> channelval connection : channel_obj -> Netamqp_connection.connectionval endpoint : channel_obj -> Netamqp_endpoint.endpointval event_system : channel_obj -> Unixqueue.event_system