All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Typedefs | Enumerations | Functions
channel.h File Reference

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)
 

Detailed Description

API to provide distinct communication channels for the radmin protocol.

Id:
eb27af9f1cbae8145cbec6c3c044881e8dbb4c05

Definition in file channel.h.

Typedef Documentation

Enumeration Type Documentation

Enumerator
FR_NOTIFY_NONE 
FR_NOTIFY_BUFFERED 
FR_NOTIFY_UNBUFFERED 

Definition at line 49 of file channel.h.

Enumerator
FR_CHANNEL_FAIL 
FR_CHANNEL_SUCCESS 

Definition at line 44 of file channel.h.

Enumerator
FR_CHANNEL_STDIN 
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 

Definition at line 32 of file channel.h.

Function Documentation

ssize_t fr_channel_drain ( int  fd,
fr_channel_type_t pchannel,
void *  inbuf,
size_t  buflen,
uint8_t **  outbuf,
size_t  have_read 
)

Definition at line 61 of file channel.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ssize_t fr_channel_read ( int  fd,
fr_channel_type_t pchannel,
void *  buffer,
size_t  buflen 
)

Definition at line 125 of file channel.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ssize_t fr_channel_write ( int  fd,
fr_channel_type_t  channel,
void const *  buffer,
size_t  buflen 
)

Definition at line 205 of file channel.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function: