API to provide distinct communication channels for the radmin protocol. More...
Go to the source code of this file.
Typedefs | |
typedef enum fr_channel_notify_t | fr_channel_notify_t |
typedef enum fr_channel_result_t | fr_channel_result_t |
typedef enum fr_channel_type_t | fr_channel_type_t |
Enumerations | |
enum | fr_channel_notify_t { FR_NOTIFY_NONE = 0, FR_NOTIFY_BUFFERED, FR_NOTIFY_UNBUFFERED } |
enum | fr_channel_result_t { FR_CHANNEL_FAIL = 0, FR_CHANNEL_SUCCESS } |
enum | fr_channel_type_t { FR_CHANNEL_STDIN = 0, FR_CHANNEL_STDOUT, FR_CHANNEL_STDERR, FR_CHANNEL_CMD_STATUS, FR_CHANNEL_INIT_ACK, FR_CHANNEL_AUTH_CHALLENGE, FR_CHANNEL_AUTH_RESPONSE, FR_CHANNEL_WANT_MORE, FR_CHANNEL_NOTIFY } |
Functions | |
ssize_t | fr_channel_drain (int fd, fr_channel_type_t *pchannel, void *inbuf, size_t buflen, uint8_t **outbuf, size_t have_read) |
ssize_t | fr_channel_read (int fd, fr_channel_type_t *pchannel, void *buffer, size_t buflen) |
ssize_t | fr_channel_write (int fd, fr_channel_type_t channel, void const *buffer, size_t buflen) |
API to provide distinct communication channels for the radmin protocol.
Definition in file channel.h.
typedef enum fr_channel_notify_t fr_channel_notify_t |
typedef enum fr_channel_result_t fr_channel_result_t |
typedef enum fr_channel_type_t fr_channel_type_t |
enum fr_channel_notify_t |
enum fr_channel_result_t |
enum fr_channel_type_t |
ssize_t fr_channel_drain | ( | int | fd, |
fr_channel_type_t * | pchannel, | ||
void * | inbuf, | ||
size_t | buflen, | ||
uint8_t ** | outbuf, | ||
size_t | have_read | ||
) |
ssize_t fr_channel_read | ( | int | fd, |
fr_channel_type_t * | pchannel, | ||
void * | buffer, | ||
size_t | buflen | ||
) |
ssize_t fr_channel_write | ( | int | fd, |
fr_channel_type_t | channel, | ||
void const * | buffer, | ||
size_t | buflen | ||
) |