Classes | Functions

network_worker_pool Namespace Reference

Classes

struct  manager

Functions

network::pending_statistics get_pending_stats ()
void set_raw_data_only ()
void set_use_system_sendfile (bool use)
void receive_data (TCPsocket sock)
 Function to asynchronously received data to the given socket.
TCPsocket get_received_data (TCPsocket sock, config &cfg, network::bandwidth_in_ptr &bandwidth_in)
TCPsocket get_received_data (std::vector< char > &out)
static void queue_buffer (TCPsocket sock, buffer *queued_buf)
void queue_raw_data (TCPsocket sock, const char *buf, int len)
void queue_file (TCPsocket sock, const std::string &filename)
size_t queue_data (TCPsocket sock, const config &buf, const std::string &packet_type)
bool is_locked (const TCPsocket sock)
bool close_socket (TCPsocket sock)
TCPsocket detect_error ()
std::pair< network::statistics,
network::statistics
get_current_transfer_stats (TCPsocket sock)

Function Documentation

bool network_worker_pool::close_socket ( TCPsocket  sock  ) 
TCPsocket network_worker_pool::detect_error (  ) 

Referenced by check_error().

Here is the caller graph for this function:

std::pair< network::statistics, network::statistics > network_worker_pool::get_current_transfer_stats ( TCPsocket  sock  ) 
network::pending_statistics network_worker_pool::get_pending_stats (  ) 
TCPsocket network_worker_pool::get_received_data ( TCPsocket  sock,
config cfg,
network::bandwidth_in_ptr bandwidth_in 
)
TCPsocket network_worker_pool::get_received_data ( std::vector< char > &  out  ) 
bool network_worker_pool::is_locked ( const TCPsocket  sock  ) 
static void network_worker_pool::queue_buffer ( TCPsocket  sock,
buffer *  queued_buf 
) [static]

Definition at line 946 of file network_worker.cpp.

References threading::condition::notify_one().

Here is the call graph for this function:

size_t network_worker_pool::queue_data ( TCPsocket  sock,
const config buf,
const std::string &  packet_type 
)
void network_worker_pool::queue_file ( TCPsocket  sock,
const std::string &  filename 
)
void network_worker_pool::queue_raw_data ( TCPsocket  sock,
const char *  buf,
int  len 
)
void network_worker_pool::receive_data ( TCPsocket  sock  ) 

Function to asynchronously received data to the given socket.

void network_worker_pool::set_raw_data_only (  ) 
void network_worker_pool::set_use_system_sendfile ( bool  use  ) 

Referenced by WESNOTH_PARAMETERIZED_TEST_CASE().

Here is the caller graph for this function:

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Fri May 25 2012 01:24:39 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs