PebbleOS
Loading...
Searching...
No Matches
Typedefs | Functions
session_send_buffer.h File Reference
#include <pbl/services/comm_session/session.h>

Typedefs

typedef struct SendBuffer SendBuffer
 Opaque buffer holding one outbound message.
 

Functions

size_t comm_session_send_buffer_get_max_payload_length (const CommSession *session)
 Get the largest payload a send buffer can hold.
 
SendBuffer * comm_session_send_buffer_begin_write (CommSession *session, uint16_t endpoint_id, size_t required_free_length, uint32_t timeout_ms)
 Allocate a kernel-heap buffer for an outbound message.
 
bool comm_session_send_buffer_write (SendBuffer *send_buffer, const uint8_t *data, size_t length)
 Append payload data to a send buffer.
 
void comm_session_send_buffer_end_write (SendBuffer *send_buffer)
 Finish a message and queue it for sending.