The FreeRADIUS server $Id: f3670dba8951ca10eb4948feb3dc3db9423a334f $
Loading...
Searching...
No Matches
Functions
fd_read.h File Reference

Common finalization code for the FD bio read functions. More...

#include <freeradius-devel/bio/fd_errno.h>
+ Include dependency graph for fd_read.h:

Go to the source code of this file.

Functions

static bool fr_bio_fd_read_retry (fr_bio_fd_t *my, ssize_t *rcode_p, int *tries_p)
 Common finalization code for the read functions.
 

Detailed Description

Common finalization code for the FD bio read functions.

Id
f04636939d9f9077bcafa0d15d5bf20809eaead5

Definition in file fd_read.h.

Function Documentation

◆ fr_bio_fd_read_retry()

static bool fr_bio_fd_read_retry ( fr_bio_fd_t my,
ssize_t rcode_p,
int *  tries_p 
)
inlinestatic

Common finalization code for the read functions.

The caller must not pass rcode==0. A read of 0 means different things for datagram and stream sockets, so each caller deals with it before getting here.

Todo:
  • do we want the callbacks to notify the previous BIO in the chain? That way the top-level BIO can notify the application.
Parameters
mythe FD bio.
[in,out]rcode_pin: the read() return code. out: what to return to the application.
[in,out]tries_phow many times we have retried on EINTR.
Returns
  • false return *rcode_p to the application.
  • true the read was interrupted, redo it.

Definition at line 44 of file fd_read.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: