Prosody SPRT end point: API: sm_sprt_read_message

Prototype Definition

int sm_sprt_read_message(struct sm_sprt_read_message_parms *datafeedp)

Parameters

*datafeedp
a structure of the following type:
typedef struct sm_sprt_read_message_parms {
	tSMSPRTId sprt;						/* in */
	char *message;						/* inout */
	int max_length;						/* in */
	int length;						/* out */
} SM_SPRT_READ_MESSAGE_PARMS;

Description

Reads a message from a SPRT end point

Fields

sprt
The SPRT end point from which to read the message
message
A pointer to the buffer to store the read message
max_length
The maximum length of the message data
length
The length of the message data

Returns

0 if call completed successfully, otherwise a standard error such as:


This function is part of the Prosody SPRT end point API.