poser
A C framework for POsix SERvices
Loading...
Searching...
No Matches
connection.h File Reference

declarations for the PSC_Connection class More...

#include <poser/decl.h>
#include <stddef.h>
#include <stdint.h>

Go to the source code of this file.

Typedefs

typedef const char *(* PSC_MessageEndLocator) (const char *str)
 Callback to find the end of a text message.
 

Detailed Description

declarations for the PSC_Connection class

Typedef Documentation

◆ PSC_MessageEndLocator

typedef const char *(* PSC_MessageEndLocator) (const char *str)

Callback to find the end of a text message.

When receiving in text mode, this is called to find the end of the message. It should return the position where the message ends (which means the first position that should NOT be included in a string passed in a PSC_Connection_dataReceived() event), or NULL if no end was found in the given string.

Parameters
strthe string to search for a message end
Returns
a pointer to the end of the message, or NULL if not found