tfMimeGetBody
Table of Contents >> Optional Protocols >> MIME
#include <trsocket.h> |
int tfMimeGetBody | ( |
ttMimeHandle mimeHandle, | |
char * bufferPtr, | |
int bufferLen | |
); |
Function Description
Get a buffer of the encoded stream parameters. The first call to this function gets the first buffer, each following call gets the next buffer. When all buffers are coded and obtained, this function will return 0.
Parameters
- mimeHandle
- Handle to the message as returned from tfMimeNewMessage().
- bufferPtr
- The user-provided buffer to store the encoded data in.
- bufferLen
- Length of the user provided buffer. It must be at least TM_MIME_MIN_BUFFER_LEN.
Returns
- >0
- Length of the coded data.
- 0
- All input data has been processed.
- <0
- Invalid input parameter or Treck was unable to allocate a buffer.