emp-toolkit
FileIO Class Reference

#include <file_io_channel.h>

Inheritance diagram for FileIO:
IOChannel< FileIO >

Public Member Functions

 FileIO (const char *file, bool read)
 
 ~FileIO ()
 
void flush ()
 
void reset ()
 
void send_data_impl (const void *data, int len)
 
void recv_data_impl (void *data, int len)
 
- Public Member Functions inherited from IOChannel< FileIO >
void send_data (const void *data, int nbyte)
 
void recv_data (void *data, int nbyte)
 
 ~IOChannel ()
 
void set_key (const block *b)
 
void send_data_enc (const void *data, int len)
 
void send_block_enc (const block *data, int len)
 
void send_bn_enc (const bn_t *bn, size_t num)
 
void recv_data_enc (void *data, int len)
 
void recv_block_enc (block *data, int len)
 
void send_eb_enc (const eb_t *eb, size_t num)
 
void recv_eb_enc (eb_t *eb, size_t num)
 
void recv_bn_enc (bn_t *bn, size_t num)
 
void send_block (const block *data, int nblock)
 
void recv_block (block *data, int nblock)
 
void send_eb (const eb_t *eb, size_t num)
 
void recv_eb (eb_t *eb, size_t num)
 
void send_bn (const bn_t *bn, size_t num)
 
void recv_bn (bn_t *bn, size_t num)
 

Public Attributes

uint64_t bytes_sent = 0
 
int mysocket = -1
 
FILE * stream = nullptr
 
char * buffer = nullptr
 
- Public Attributes inherited from IOChannel< FileIO >
PRGprg
 

Constructor & Destructor Documentation

§ FileIO()

FileIO::FileIO ( const char *  file,
bool  read 
)
inline

§ ~FileIO()

FileIO::~FileIO ( )
inline

Member Function Documentation

§ flush()

void FileIO::flush ( )
inline

§ recv_data_impl()

void FileIO::recv_data_impl ( void *  data,
int  len 
)
inline

§ reset()

void FileIO::reset ( )
inline

§ send_data_impl()

void FileIO::send_data_impl ( const void *  data,
int  len 
)
inline

Member Data Documentation

§ buffer

char* FileIO::buffer = nullptr

§ bytes_sent

uint64_t FileIO::bytes_sent = 0

§ mysocket

int FileIO::mysocket = -1

§ stream

FILE* FileIO::stream = nullptr

The documentation for this class was generated from the following file: