NewMadeleine

Documentation

« back to PM2 home.
nm_pack_interface.h File Reference
Include dependency graph for nm_pack_interface.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  nm_pack_cnx_s
 Content for the request in the pack interface. More...
 
typedef struct nm_pack_cnx_s nm_pack_cnx_t
 A request for the pack interface.
 
int nm_begin_packing (nm_session_t p_session, nm_gate_t p_gate, nm_tag_t tag, nm_pack_cnx_t *p_cnx)
 Start building a new message for sending.
 
int nm_pack (nm_pack_cnx_t *p_cnx, const void *ptr, nm_len_t len)
 Append a data fragment to the current message.
 
int nm_pack_express (nm_pack_cnx_t *p_cnx, const void *ptr, nm_len_t len)
 Append a data fragment to the current message, in express mode: data will be aavailable immediately after unpack in receiver side.
 
int nm_end_packing (nm_pack_cnx_t *p_cnx)
 End building and send the current message.
 
int nm_begin_unpacking (nm_session_t p_session, nm_gate_t p_gate, nm_tag_t tag, nm_pack_cnx_t *p_cnx)
 Start receiving and extracting a new message.
 
int nm_unpack (nm_pack_cnx_t *p_cnx, void *ptr, nm_len_t len)
 Extract a data fragment from the current message; data will actually be available after end_unpacking.
 
int nm_unpack_express (nm_pack_cnx_t *p_cnx, void *ptr, nm_len_t len)
 Extract a data fragment from the current message in express mode: data will be available upon function return.
 
int nm_end_unpacking (nm_pack_cnx_t *p_cnx)
 End receiving and flush extraction of the current message.