emp-toolkit
NetIO Class Reference

#include <net_io_channel.h>

Inheritance diagram for NetIO:
IOChannel< NetIO >

Public Member Functions

 NetIO (const char *address, int port)
 
 ~NetIO ()
 
void sync ()
 
void set_nodelay ()
 
void set_delay ()
 
void flush ()
 
void send_data_impl (const void *data, int len)
 
void recv_data_impl (void *data, int len)
 
- Public Member Functions inherited from IOChannel< NetIO >
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

bool is_server
 
int mysocket = -1
 
int consocket = -1
 
FILE * stream = nullptr
 
char * buffer = nullptr
 
bool has_sent = false
 
- Public Attributes inherited from IOChannel< NetIO >
PRGprg
 

Constructor & Destructor Documentation

§ NetIO()

NetIO::NetIO ( const char *  address,
int  port 
)
inline

§ ~NetIO()

NetIO::~NetIO ( )
inline

Member Function Documentation

§ flush()

void NetIO::flush ( )
inline

§ recv_data_impl()

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

§ send_data_impl()

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

§ set_delay()

void NetIO::set_delay ( )
inline

§ set_nodelay()

void NetIO::set_nodelay ( )
inline

§ sync()

void NetIO::sync ( )
inline

Member Data Documentation

§ buffer

char* NetIO::buffer = nullptr

§ consocket

int NetIO::consocket = -1

§ has_sent

bool NetIO::has_sent = false

§ is_server

bool NetIO::is_server

§ mysocket

int NetIO::mysocket = -1

§ stream

FILE* NetIO::stream = nullptr

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