Classes | |
struct | manager |
Functions | |
network::pending_statistics | get_pending_stats () |
void | set_raw_data_only () |
void | receive_data (TCPsocket sock) |
Function to asynchronously received data to the given socket. | |
TCPsocket | get_received_data (TCPsocket sock, config &cfg) |
TCPsocket | get_received_data (std::vector< char > &out) |
void | queue_raw_data (TCPsocket sock, const char *buf, int len) |
void | queue_data (TCPsocket sock, const config &buf, const bool gzipped) |
void | remove_buffers (TCPsocket sock) |
Caller has to make sure to own the mutex for this shard. | |
bool | is_locked (const TCPsocket sock) |
bool | close_socket (TCPsocket sock, bool force) |
TCPsocket | detect_error () |
std::pair< network::statistics, network::statistics > | get_current_transfer_stats (TCPsocket sock) |
bool network_worker_pool::close_socket | ( | TCPsocket | sock, | |
bool | force | |||
) |
Definition at line 830 of file network_worker.cpp.
References boost::foreach_detail_::begin(), boost::foreach_detail_::end(), get_shard(), halo::remove(), remove_buffers(), SOCKET_INTERRUPT, and SOCKET_LOCKED.
Referenced by network::disconnect().
TCPsocket network_worker_pool::detect_error | ( | ) |
Definition at line 861 of file network_worker.cpp.
References boost::foreach_detail_::begin(), boost::foreach_detail_::end(), NUM_SHARDS, halo::remove(), remove_buffers(), sock, and SOCKET_ERRORED.
Referenced by check_error().
std::pair< network::statistics, network::statistics > network_worker_pool::get_current_transfer_stats | ( | TCPsocket | sock | ) |
Definition at line 890 of file network_worker.cpp.
Referenced by network::get_receive_stats(), and network::get_send_stats().
network::pending_statistics network_worker_pool::get_pending_stats | ( | ) |
Definition at line 664 of file network_worker.cpp.
References boost::foreach_detail_::begin(), network::pending_statistics::nbytes_pending_sends, network::pending_statistics::npending_sends, and NUM_SHARDS.
Referenced by network::get_pending_stats().
TCPsocket network_worker_pool::get_received_data | ( | std::vector< char > & | out | ) |
TCPsocket network_worker_pool::get_received_data | ( | TCPsocket | sock, | |
config & | cfg | |||
) |
Definition at line 699 of file network_worker.cpp.
References buf, raw_data_only, and config::swap().
Referenced by network::receive_data().
bool network_worker_pool::is_locked | ( | const TCPsocket | sock | ) |
Definition at line 822 of file network_worker.cpp.
References boost::foreach_detail_::end(), get_shard(), and SOCKET_LOCKED.
Referenced by network::receive_data().
void network_worker_pool::queue_data | ( | TCPsocket | sock, | |
const config & | buf, | |||
const bool | gzipped | |||
) |
Definition at line 762 of file network_worker.cpp.
References DBG_NW, get_shard(), threading::condition::notify_one(), output_to_buffer(), SOCKET_ERRORED, and SOCKET_READY.
Referenced by network::send_data().
void network_worker_pool::queue_raw_data | ( | TCPsocket | sock, | |
const char * | buf, | |||
int | len | |||
) |
Definition at line 747 of file network_worker.cpp.
References get_shard(), make_network_buffer(), threading::condition::notify_one(), SOCKET_ERRORED, and SOCKET_READY.
Referenced by network::send_raw_data().
void network_worker_pool::receive_data | ( | TCPsocket | sock | ) |
Function to asynchronously received data to the given socket.
Definition at line 685 of file network_worker.cpp.
References get_shard(), threading::condition::notify_one(), SOCKET_ERRORED, and SOCKET_READY.
Referenced by network::receive_data().
void network_worker_pool::@144::remove_buffers | ( | TCPsocket | sock | ) | [static] |
Caller has to make sure to own the mutex for this shard.
Definition at line 787 of file network_worker.cpp.
References boost::foreach_detail_::begin(), buf, and get_shard().
Referenced by close_socket(), and detect_error().
void network_worker_pool::set_raw_data_only | ( | ) |
Definition at line 680 of file network_worker.cpp.
References raw_data_only.
Referenced by network::set_raw_data_only().
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |