Typedefs | |
typedef xf_s | xf_t |
Deserializer Class. | |
Functions | |
xf_t * | xf_new (xf_refl_t **pprefl, int fd, char *info) |
Constructor. | |
char * | xf_getinfo (xf_t *pxf) |
Get Info. | |
int | xf_getpeer (xf_t *pxf, struct sockaddr *address, socklen_t *address_len) |
Get peer address if input stream is socket. | |
xf_refl_t ** | xf_getrefl (xf_t *pxf) |
Get reflection list. | |
int | xf_parse (xf_t *pxf, xf_instance_t **ppret) |
Parse Input. | |
void * | xf_getuserdata (xf_t *pxf) |
Get user data. | |
int | xf_setuserdata (xf_t *pxf, void *userdata) |
Set user data. | |
int | xf_isreply (xf_t *pxf) |
is data already written back to stream? | |
int | xf_setreply (xf_t *pxf) |
set flag that data is already written back to stream | |
int | xf_isclosed (xf_t *pxf) |
is reply stream data closed? | |
int | xf_setclosed (xf_t *pxf) |
set flag that reply stream is closed | |
int | xf_getfd (xf_t *pxf) |
return file descriptor of stream | |
int | xf_free (xf_t *pxf) |
Desctructor, frees stream deserializer. |
typedef struct xf_s xf_t |
Deserializer Class.
object deserializer for stream based (socket) input
int xf_free | ( | xf_t * | pxf | ) |
Desctructor, frees stream deserializer.
pxf | Deserializer |
int xf_getfd | ( | xf_t * | pxf | ) |
return file descriptor of stream
gets file descriptor of transfer stream
pxf | Deserializer |
char* xf_getinfo | ( | xf_t * | pxf | ) |
Get Info.
pxf | The deserialiser object to get the info from |
int xf_getpeer | ( | xf_t * | pxf, | |
struct sockaddr * | address, | |||
socklen_t * | address_len | |||
) |
Get peer address if input stream is socket.
pxf | The deserialiser object to get the peer from This function shall retrieve the peer address of the specified xfer stream, store this address in the sockaddr structure pointed to by the address argument, and store the length of this address in the object pointed to by the address_len argument. |
If the protocol permits connections by unbound clients, and the peer is not bound, then the value stored in the object pointed to by address is unspecified.
Get reflection list.
pxf | The deserialiser object to get the reflection list from |
void* xf_getuserdata | ( | xf_t * | pxf | ) |
Get user data.
pxf | The deserialiser object to get the userdata from |
int xf_isclosed | ( | xf_t * | pxf | ) |
is reply stream data closed?
pxf | Deserializer |
int xf_isreply | ( | xf_t * | pxf | ) |
is data already written back to stream?
pxf | Deserializer |
Constructor.
pprefl | null-terminated list of reflections of possible object-classes | |
fd | descriptor of stream/socket | |
info | optional info |
int xf_parse | ( | xf_t * | pxf, | |
xf_instance_t ** | ppret | |||
) |
Parse Input.
This method is to be called when input is available on stream
pxf | Deserializer |
int xf_setclosed | ( | xf_t * | pxf | ) |
set flag that reply stream is closed
set flag that reply stream data has been closed with closing tag
pxf | Deserializer |
int xf_setreply | ( | xf_t * | pxf | ) |
set flag that data is already written back to stream
set flag: reply stream data has been opened with opening tag
pxf | Deserializer |
int xf_setuserdata | ( | xf_t * | pxf, | |
void * | userdata | |||
) |
Set user data.
pxf | The deserialiser object to set the userdata |