15 #ifndef NETWORK_WORKER_HPP_INCLUDED
16 #define NETWORK_WORKER_HPP_INCLUDED
33 #define ALIGN_4 __attribute__ ((aligned (4)))
43 explicit manager(
size_t min_threads,
size_t max_threads);
void receive_data(TCPsocket sock)
Function to asynchronously received data to the given socket.
void queue_raw_data(TCPsocket sock, const char *buf, int len)
size_t queue_data(TCPsocket sock, const config &buf, const std::string &packet_type)
bool is_locked(const TCPsocket sock)
manager(size_t min_threads, size_t max_threads)
TCPsocket get_received_data(TCPsocket sock, config &cfg, network::bandwidth_in_ptr &bandwidth_in)
void queue_file(TCPsocket sock, const std::string &filename)
GLenum GLuint GLsizei const char * buf
network::pending_statistics get_pending_stats()
void operator=(const manager &)
void set_use_system_sendfile(bool use)
A config object defines a single node in a WML file, with access to child nodes.
bool close_socket(TCPsocket sock)
GLsizei const GLcharARB ** string
std::pair< network::statistics, network::statistics > get_current_transfer_stats(TCPsocket sock)