25 #ifndef MSG_INTERNAL_H 27 #define MSG_INTERNAL_H 39 #error "msg_internal.h" should be included before "msg.h" 76 struct msg_mbuffer_s {
118 #define MSG_SSIZE_MAX (USIZE_MAX) 146 return h->sh_class->hc_hash < 0;
Message payload.
Definition: msg_types.h:214
unsigned m_set_buffer
Buffer has been set.
Definition: msg_internal.h:90
unsigned short m_extract_err
Bitmask of erroneous headers.
Definition: msg_internal.h:88
msg_payload_t * m_chunk
Incomplete payload fragment.
Definition: msg_internal.h:73
msg_buffer_t * m_stream
User-provided buffers.
Definition: msg_internal.h:85
New header is appended.
Definition: msg_types.h:252
int m_errno
Errno.
Definition: msg_internal.h:103
Buffer for message body.
Definition: msg_internal.h:107
size_t m_ssize
Stream size.
Definition: msg_internal.h:86
A token list header, new header is combined with old one.
Definition: msg_types.h:253
MSG_PUB_T msg_pub_t
Public protocol-specific message structure for accessing the message.
Definition: msg_types.h:81
Only one header is allowed.
Definition: msg_types.h:251
msg_t * m_next
Next message.
Definition: msg_internal.h:95
msg_payload_t * b_chunks
List of body chunks.
Definition: msg_internal.h:114
msg_mclass_t const * m_class
Message class.
Definition: msg_internal.h:62
unsigned m_prepared
Prepared/not.
Definition: msg_internal.h:92
size_t m_size
Total size of fragments.
Definition: msg_internal.h:68
size_t b_avail
Available data.
Definition: msg_internal.h:111
unsigned m_streaming
Use streaming with message.
Definition: msg_internal.h:91
int b_complete
This buffer completes the message.
Definition: msg_internal.h:112
struct addrinfo su_addrinfo_t
int m_oflags
Original flags.
Definition: msg_internal.h:63
Addressing and I/O interface for messages.
msg_buffer_t * b_next
Next buffer.
Definition: msg_internal.h:113
msg_header_t ** m_tail
Tail of fragment chain.
Definition: msg_internal.h:71
char * b_data
Data - may contain NUL.
Definition: msg_internal.h:108
int m_refs
Number of references to this message.
Definition: msg_internal.h:98
MSG_HDR_T msg_header_t
Any protocol-specific header object.
Definition: msg_types.h:87
Internal buffer management functions.
msg_t * m_parent
Reference to a parent message.
Definition: msg_internal.h:97
size_t b_used
Used data.
Definition: msg_internal.h:110
size_t m_maxsize
Maximum size.
Definition: msg_internal.h:67
su_home_t m_home[1]
Memory home.
Definition: msg_internal.h:60
New header is prepended.
Definition: msg_types.h:256
A complex list header.
Definition: msg_types.h:255
Message object.
Definition: msg_internal.h:59
su_addrinfo_t m_addrinfo
Message addressing info (protocol)
Definition: msg_internal.h:100
size_t b_size
Length of message payload.
Definition: msg_internal.h:109
su_sockaddr_t m_addr[1]
Message address.
Definition: msg_internal.h:101
msg_header_t * m_chain
Fragment chain.
Definition: msg_internal.h:70
msg_pub_t * m_object
Public view to parsed message.
Definition: msg_internal.h:65
Factory object for protocol messages.
Definition: msg_mclass.h:96