[][src]Crate qpid_proton_sys

Structs

pn_bytes_t
pn_condition_t
pn_connection_t
pn_data_t
pn_delivery_t
pn_delivery_tag_t
pn_error_t
pn_event_batch_t
pn_event_t
pn_link_t
pn_logger_t
pn_message_t
pn_proactor_t
pn_rwbytes_t
pn_sasl_t
pn_session_t
pn_ssl_domain_t
pn_ssl_t
pn_terminus_t
pn_transport_t

Enums

pn_event_type_t
pn_log_level_t
pn_log_subsystem_t
pn_ssl_mode_t

Functions

pn_bytes
pn_condition_get_description
pn_condition_get_name
pn_connection

Factory to construct a new Connection.

pn_connection_close

Close a connection. Once this operation has completed, the PN_LOCAL_CLOSED state flag will be set. This may be called without calling pn_connection_open, in this case it is equivalent to calling pn_connection_open followed by pn_connection_close.

pn_connection_open

Open a connection. Once this operation has completed, the PN_LOCAL_ACTIVE state flag will be set.

pn_connection_set_container

Set the AMQP Container name advertised by a connection object.

pn_connection_set_hostname
pn_connection_set_password
pn_connection_set_user
pn_data_enter
pn_data_exit
pn_data_put_int
pn_data_put_map
pn_data_put_string
pn_delivery
pn_delivery_remote_state
pn_dtag
pn_error_set
pn_error_text
pn_event_batch_next
pn_event_connection
pn_event_delivery
pn_event_link
pn_event_session
pn_event_type
pn_link_advance

Advance the current delivery of a link to the next delivery on the link. For sending links this operation is used to finish sending message data for the current outgoing delivery and move on to the next outgoing delivery (if any). For receiving links, this operation is used to finish accessing message data from the current incoming delivery and move on to the next incoming delivery (if any). Each link maintains a sequence of deliveries in the order they were created, along with a pointer to the current delivery. The pn_link_advance operation will modify the current delivery on the link to point to the next delivery in the sequence. If there is no next delivery in the sequence, the current delivery will be set to NULL. This operation will return true if invoking it caused the value of the current delivery to change, even if it was set to NULL.

pn_link_credit

Get the credit balance for a link. Links use a credit based flow control scheme. Every receiver maintains a credit balance that corresponds to the number of deliveries that the receiver can accept at any given moment. As more capacity becomes available at the receiver (see pn_link_flow), it adds credit to this balance and communicates the new balance to the sender. Whenever a delivery is sent/received, the credit balance maintained by the link is decremented by one. Once the credit balance at the sender reaches zero, the sender must pause sending until more credit is obtained from the receiver. Note that a sending link may still be used to send deliveries even if pn_link_credit reaches zero, however those deliveries will end up being buffered by the link until enough credit is obtained from the receiver to send them over the wire. In this case the balance reported by pn_link_credit will go negative.

pn_link_flow

Grant credit for incoming deliveries on a receiver.

pn_link_open

Open a link. Once this operation has completed, the PN_LOCAL_ACTIVE state flag will be set.

pn_link_send

Send message data for the current delivery on a link.

pn_link_target

Access the locally defined target definition for a link. The pointer returned by this operation is valid until the link object is freed.

pn_logger_set_mask
pn_message

Construct a new pn_message_t. Every message that is constructed must be freed using pn_message_free().

pn_message_body

Get and set the body of a message. This operation returns a pointer to a pn_data_t representing the body of a message. The pointer is valid until the message is freed and may be used to both access and modify the content of the message body.

pn_message_clear

Clears the content of a pn_message_t. When pn_message_clear returns, the supplied pn_message_t will be emptied of all content and effectively returned to the same state as if it was just created.

pn_message_encode

Encode a message as AMQP formatted binary data. If the buffer space provided is insufficient to store the content held in the message, the operation will fail and return a PN_OVERFLOW error code.

pn_message_error

Free a previously constructed pn_message_t.

pn_message_free

Free a previously constructed pn_message_t.

pn_message_id

Get/set the id for a message. The message id provides a globally unique identifier for a message. A message id can be an a string, an unsigned long, a uuid or a binary value. This operation returns a pointer to a pn_data_t that can be used to access and/or modify the value of the message id. The pointer is valid until the message is freed. See pn_data_t for details on how to get/set the value.

pn_message_send

Encode and send a message on a sender link. Performs the following steps: call pn_message_encode2() to encode the message to a buffer call pn_link_send() to send the encoded message bytes call pn_link_advance() to indicate the message is complete Note: you must create a delivery for the message before calling pn_message_send() see pn_delivery()

pn_proactor

Create a proactor. Must be freed with pn_proactor_free()

pn_proactor_addr
pn_proactor_connect2

Free the proactor. Abort open connections/listeners, clean up all resources.

pn_proactor_done
pn_proactor_free
pn_proactor_wait
pn_sasl
pn_sasl_allowed_mechs
pn_sasl_set_allow_insecure_mechs
pn_sender
pn_session

Factory for creating a new session on a given connection object. Creates a new session object and adds it to the set of sessions maintained by the connection object.

pn_session_close

Close a session. Once this operation has completed, the PN_LOCAL_CLOSED state flag will be set. This may be called without calling pn_session_open, in this case it is equivalent to calling pn_session_open followed by pn_session_close.

pn_session_free

Free a session object. When a session is freed it will no longer be retained by the connection once any internal references to the session are no longer needed. Freeing a session will free all links on that session and settle any deliveries on those links.

pn_session_open

Open a session. Once this operation has completed, the PN_LOCAL_ACTIVE state flag will be set.

pn_session_remote_condition
pn_ssl
pn_ssl_domain
pn_ssl_get_remote_subject
pn_ssl_init
pn_ssl_set_peer_hostname
pn_terminus_set_address
pn_transport
pn_transport_condition
pn_transport_logger
pn_transport_require_auth
pn_transport_require_encryption