flux-io

flux-io —

Synopsis




#define     FLUX_IO                         (object)
struct      FluxIO;
void        flux_io_init                    (FluxIO *io);
void        flux_io_finalize                (FluxObject *io);
void        flux_io_set_cipher              (FluxIO *io,
                                             FluxCipher *cipher);
void        flux_io_set_read_func           (FluxIO *io,
                                             FluxIOReadFunc *func,
                                             gpointer data);
void        flux_io_set_write_func          (FluxIO *io,
                                             FluxIOWriteFunc *func,
                                             gpointer data);
void        flux_io_set_read_threshold      (FluxIO *io,
                                             guint threshold);
void        flux_io_set_write_threshold     (FluxIO *io,
                                             guint threshold);
void        flux_io_set_compression         (FluxIO *io,
                                             guint level);

Description

Details

FLUX_IO()

#define FLUX_IO(object) ((FluxIO *) object)

object :

struct FluxIO

struct FluxIO {

  FluxDualFifo     dfifo;

  FluxCipher      *cipher;
  guint            compression_level;

  gint             read_cap,  read_count,  read_cps;
  gint             write_cap, write_count, write_cps;

  guint            cap_slice_timeout_id;

  FluxIOReadFunc  *read_func;
  gpointer         read_func_data;
  guint            read_threshold;

  FluxIOWriteFunc *write_func;
  gpointer         write_func_data;
  guint            write_threshold;
};


flux_io_init ()

void        flux_io_init                    (FluxIO *io);

io :

flux_io_finalize ()

void        flux_io_finalize                (FluxObject *io);

io :

flux_io_set_cipher ()

void        flux_io_set_cipher              (FluxIO *io,
                                             FluxCipher *cipher);

io :
cipher :

flux_io_set_read_func ()

void        flux_io_set_read_func           (FluxIO *io,
                                             FluxIOReadFunc *func,
                                             gpointer data);

io :
func :
data :

flux_io_set_write_func ()

void        flux_io_set_write_func          (FluxIO *io,
                                             FluxIOWriteFunc *func,
                                             gpointer data);

io :
func :
data :

flux_io_set_read_threshold ()

void        flux_io_set_read_threshold      (FluxIO *io,
                                             guint threshold);

io :
threshold :

flux_io_set_write_threshold ()

void        flux_io_set_write_threshold     (FluxIO *io,
                                             guint threshold);

io :
threshold :

flux_io_set_compression ()

void        flux_io_set_compression         (FluxIO *io,
                                             guint level);

io :
level :