asio::detail::socket_ops Namespace Reference


Typedefs

typedef iovec buf

Functions

void clear_error (asio::error_code &ec)
template<typename ReturnType>
ReturnType error_wrapper (ReturnType return_value, asio::error_code &ec)
socket_type accept (socket_type s, socket_addr_type *addr, socket_addr_len_type *addrlen, asio::error_code &ec)
int bind (socket_type s, const socket_addr_type *addr, socket_addr_len_type addrlen, asio::error_code &ec)
int close (socket_type s, asio::error_code &ec)
int shutdown (socket_type s, int what, asio::error_code &ec)
int connect (socket_type s, const socket_addr_type *addr, socket_addr_len_type addrlen, asio::error_code &ec)
int listen (socket_type s, int backlog, asio::error_code &ec)
void init_buf (buf &b, void *data, size_t size)
void init_buf (buf &b, const void *data, size_t size)
int recv (socket_type s, buf *bufs, size_t count, int flags, asio::error_code &ec)
int recvfrom (socket_type s, buf *bufs, size_t count, int flags, socket_addr_type *addr, socket_addr_len_type *addrlen, asio::error_code &ec)
int send (socket_type s, const buf *bufs, size_t count, int flags, asio::error_code &ec)
int sendto (socket_type s, const buf *bufs, size_t count, int flags, const socket_addr_type *addr, socket_addr_len_type addrlen, asio::error_code &ec)
socket_type socket (int af, int type, int protocol, asio::error_code &ec)
int setsockopt (socket_type s, int level, int optname, const void *optval, size_t optlen, asio::error_code &ec)
int getsockopt (socket_type s, int level, int optname, void *optval, size_t *optlen, asio::error_code &ec)
int getpeername (socket_type s, socket_addr_type *addr, socket_addr_len_type *addrlen, asio::error_code &ec)
int getsockname (socket_type s, socket_addr_type *addr, socket_addr_len_type *addrlen, asio::error_code &ec)
int ioctl (socket_type s, long cmd, ioctl_arg_type *arg, asio::error_code &ec)
int select (int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, timeval *timeout, asio::error_code &ec)
int poll_read (socket_type s, asio::error_code &ec)
int poll_write (socket_type s, asio::error_code &ec)
const char * inet_ntop (int af, const void *src, char *dest, size_t length, unsigned long scope_id, asio::error_code &ec)
int inet_pton (int af, const char *src, void *dest, unsigned long *scope_id, asio::error_code &ec)
int gethostname (char *name, int namelen, asio::error_code &ec)
asio::error_code translate_addrinfo_error (int error)
asio::error_code getaddrinfo (const char *host, const char *service, const addrinfo_type *hints, addrinfo_type **result, asio::error_code &ec)
void freeaddrinfo (addrinfo_type *ai)
asio::error_code getnameinfo (const socket_addr_type *addr, socket_addr_len_type addrlen, char *host, std::size_t hostlen, char *serv, std::size_t servlen, int flags, asio::error_code &ec)
u_long_type network_to_host_long (u_long_type value)
u_long_type host_to_network_long (u_long_type value)
u_short_type network_to_host_short (u_short_type value)
u_short_type host_to_network_short (u_short_type value)


Typedef Documentation

Definition at line 125 of file socket_ops.hpp.


Function Documentation

socket_type asio::detail::socket_ops::accept ( socket_type  s,
socket_addr_type *  addr,
socket_addr_len_type *  addrlen,
asio::error_code ec 
) [inline]

int asio::detail::socket_ops::bind ( socket_type  s,
const socket_addr_type *  addr,
socket_addr_len_type  addrlen,
asio::error_code ec 
) [inline]

Definition at line 86 of file socket_ops.hpp.

References clear_error(), and error_wrapper().

Referenced by libtorrent::dht::traversal_algorithm::add_entry(), libtorrent::torrent_info::add_file(), libtorrent::bandwidth_manager::add_history_entry(), libtorrent::dht::dht_tracker::add_node(), libtorrent::dht::traversal_algorithm::add_requests(), libtorrent::dht::dht_tracker::add_router_node(), libtorrent::aux::session_impl::add_torrent(), libtorrent::torrent_info::add_tracker(), libtorrent::torrent_handle::add_url_seed(), libtorrent::dht::node_impl::announce(), libtorrent::udp_tracker_connection::announce_response(), libtorrent::aux::session_impl::async_accept(), asio::ssl::detail::openssl_stream_service::async_handshake(), asio::ssl::detail::openssl_stream_service::async_read_some(), asio::ssl::detail::openssl_stream_service::async_shutdown(), asio::ssl::detail::openssl_stream_service::async_write_some(), asio::detail::reactive_socket_service< Protocol, Reactor >::bind(), bindlocal(), libtorrent::peer_connection::connect(), libtorrent::udp_tracker_connection::connect_response(), libtorrent::torrent::connect_to_url_seed(), libtorrent::http_tracker_connection::connected(), libtorrent::dht::dht_tracker::connection_timeout(), Curl_tftp_connect(), libtorrent::dht::dht_tracker::dht_tracker(), libtorrent::peer_connection::disconnect(), asio::ssl::detail::openssl_operation< Stream >::do_async_read(), asio::ssl::detail::openssl_operation< Stream >::do_async_write(), libtorrent::dht::traversal_algorithm::failed(), libtorrent::torrent_handle::filter_files(), libtorrent::torrent_handle::filter_piece(), libtorrent::torrent_handle::filter_pieces(), libtorrent::torrent_handle::filtered_pieces(), libtorrent::dht::routing_table::find_node(), libtorrent::torrent::finished(), ftp_state_use_port(), libtorrent::torrent_handle::get_torrent_info(), asio::ssl::detail::openssl_stream_service::handshake_handler< Stream, Handler >::handshake_handler(), libtorrent::torrent_handle::has_metadata(), libtorrent::http_tracker_connection::http_tracker_connection(), libtorrent::policy::interested(), asio::ssl::detail::openssl_stream_service::io_handler< Stream, Handler >::io_handler(), libtorrent::torrent_handle::is_paused(), libtorrent::torrent_handle::is_piece_filtered(), libtorrent::torrent_handle::is_seed(), main(), libtorrent::torrent_handle::move_storage(), libtorrent::torrent_handle::name(), libtorrent::http_tracker_connection::name_lookup(), libtorrent::dht::routing_table::need_node(), libtorrent::dht::routing_table::node_failed(), libtorrent::dht::routing_table::node_seen(), libtorrent::torrent::num_seeds(), libtorrent::torrent::on_dht_announce(), libtorrent::torrent::on_dht_announce_response(), libtorrent::bandwidth_manager::on_history_expire(), libtorrent::torrent::on_proxy_name_lookup(), libtorrent::dht::dht_tracker::on_receive(), fsFtpFile::OpenSocket(), asio::ssl::detail::openssl_operation< Stream >::openssl_operation(), libtorrent::aux::session_impl::operator()(), libtorrent::aux::checker_impl::operator()(), libtorrent::torrent_handle::pause(), peer_index(), asio::ssl::detail::openssl_stream_service::read_some(), libtorrent::http_tracker_connection::receive(), libtorrent::dht::node_impl::refresh(), libtorrent::dht::node_impl::refresh_bucket(), libtorrent::dht::dht_tracker::refresh_timeout(), libtorrent::torrent_handle::replace_trackers(), libtorrent::torrent_handle::resolve_countries(), libtorrent::torrent::resolve_peer_country(), libtorrent::torrent_handle::resume(), libtorrent::torrent_handle::save_path(), libtorrent::udp_tracker_connection::scrape_response(), libtorrent::aux::session_impl::second_tick(), libtorrent::torrent::second_tick(), libtorrent::udp_tracker_connection::send_udp_announce(), libtorrent::udp_tracker_connection::send_udp_connect(), libtorrent::udp_tracker_connection::send_udp_scrape(), libtorrent::http_tracker_connection::sent(), libtorrent::aux::session_impl::session_impl(), libtorrent::torrent_handle::set_download_limit(), libtorrent::torrent_handle::set_max_connections(), libtorrent::torrent_handle::set_max_uploads(), libtorrent::torrent_handle::set_peer_download_limit(), libtorrent::torrent_handle::set_peer_upload_limit(), libtorrent::torrent_handle::set_ratio(), libtorrent::torrent_handle::set_sequenced_download_threshold(), libtorrent::timeout_handler::set_timeout(), libtorrent::torrent_handle::set_tracker_login(), libtorrent::torrent_handle::set_upload_limit(), libtorrent::peer_connection::setup_receive(), libtorrent::peer_connection::setup_send(), asio::ssl::detail::openssl_stream_service::shutdown_handler< Stream, Handler >::shutdown_handler(), asio::detail::socket_select_interrupter::socket_select_interrupter(), vmsHttpServer::Start(), libtorrent::torrent::status(), libtorrent::dht::rpc_manager::tick(), libtorrent::dht::dht_tracker::tick(), libtorrent::timeout_handler::timeout_callback(), libtorrent::torrent::torrent(), libtorrent::torrent::tracker_response(), libtorrent::torrent_handle::trackers(), libtorrent::dht::traversal_algorithm::traversal_algorithm(), libtorrent::torrent::try_next_tracker(), libtorrent::udp_tracker_connection::udp_tracker_connection(), libtorrent::torrent_handle::use_interface(), asio::ssl::detail::openssl_stream_service::write_some(), and libtorrent::dht::rpc_manager::~rpc_manager().

void asio::detail::socket_ops::clear_error ( asio::error_code ec  )  [inline]

int asio::detail::socket_ops::close ( socket_type  s,
asio::error_code ec 
) [inline]

int asio::detail::socket_ops::connect ( socket_type  s,
const socket_addr_type *  addr,
socket_addr_len_type  addrlen,
asio::error_code ec 
) [inline]

template<typename ReturnType>
ReturnType asio::detail::socket_ops::error_wrapper ( ReturnType  return_value,
asio::error_code ec 
) [inline]

void asio::detail::socket_ops::freeaddrinfo ( addrinfo_type *  ai  )  [inline]

asio::error_code asio::detail::socket_ops::getaddrinfo ( const char *  host,
const char *  service,
const addrinfo_type *  hints,
addrinfo_type **  result,
asio::error_code ec 
) [inline]

int asio::detail::socket_ops::gethostname ( char *  name,
int  namelen,
asio::error_code ec 
) [inline]

asio::error_code asio::detail::socket_ops::getnameinfo ( const socket_addr_type *  addr,
socket_addr_len_type  addrlen,
char *  host,
std::size_t  hostlen,
char *  serv,
std::size_t  servlen,
int  flags,
asio::error_code ec 
) [inline]

int asio::detail::socket_ops::getpeername ( socket_type  s,
socket_addr_type *  addr,
socket_addr_len_type *  addrlen,
asio::error_code ec 
) [inline]

int asio::detail::socket_ops::getsockname ( socket_type  s,
socket_addr_type *  addr,
socket_addr_len_type *  addrlen,
asio::error_code ec 
) [inline]

int asio::detail::socket_ops::getsockopt ( socket_type  s,
int  level,
int  optname,
void *  optval,
size_t *  optlen,
asio::error_code ec 
) [inline]

u_long_type asio::detail::socket_ops::host_to_network_long ( u_long_type  value  )  [inline]

u_short_type asio::detail::socket_ops::host_to_network_short ( u_short_type  value  )  [inline]

const char* asio::detail::socket_ops::inet_ntop ( int  af,
const void *  src,
char *  dest,
size_t  length,
unsigned long  scope_id,
asio::error_code ec 
) [inline]

int asio::detail::socket_ops::inet_pton ( int  af,
const char *  src,
void *  dest,
unsigned long *  scope_id,
asio::error_code ec 
) [inline]

void asio::detail::socket_ops::init_buf ( buf &  b,
const void *  data,
size_t  size 
) [inline]

void asio::detail::socket_ops::init_buf ( buf &  b,
void *  data,
size_t  size 
) [inline]

Definition at line 128 of file socket_ops.hpp.

int asio::detail::socket_ops::ioctl ( socket_type  s,
long  cmd,
ioctl_arg_type *  arg,
asio::error_code ec 
) [inline]

int asio::detail::socket_ops::listen ( socket_type  s,
int  backlog,
asio::error_code ec 
) [inline]

u_long_type asio::detail::socket_ops::network_to_host_long ( u_long_type  value  )  [inline]

u_short_type asio::detail::socket_ops::network_to_host_short ( u_short_type  value  )  [inline]

Definition at line 1576 of file socket_ops.hpp.

Referenced by asio::ip::basic_endpoint< InternetProtocol >::port().

int asio::detail::socket_ops::poll_read ( socket_type  s,
asio::error_code ec 
) [inline]

int asio::detail::socket_ops::poll_write ( socket_type  s,
asio::error_code ec 
) [inline]

int asio::detail::socket_ops::recv ( socket_type  s,
buf *  bufs,
size_t  count,
int  flags,
asio::error_code ec 
) [inline]

int asio::detail::socket_ops::recvfrom ( socket_type  s,
buf *  bufs,
size_t  count,
int  flags,
socket_addr_type *  addr,
socket_addr_len_type *  addrlen,
asio::error_code ec 
) [inline]

int asio::detail::socket_ops::select ( int  nfds,
fd_set *  readfds,
fd_set *  writefds,
fd_set *  exceptfds,
timeval timeout,
asio::error_code ec 
) [inline]

int asio::detail::socket_ops::send ( socket_type  s,
const buf *  bufs,
size_t  count,
int  flags,
asio::error_code ec 
) [inline]

int asio::detail::socket_ops::sendto ( socket_type  s,
const buf *  bufs,
size_t  count,
int  flags,
const socket_addr_type *  addr,
socket_addr_len_type  addrlen,
asio::error_code ec 
) [inline]

int asio::detail::socket_ops::setsockopt ( socket_type  s,
int  level,
int  optname,
const void *  optval,
size_t  optlen,
asio::error_code ec 
) [inline]

int asio::detail::socket_ops::shutdown ( socket_type  s,
int  what,
asio::error_code ec 
) [inline]

socket_type asio::detail::socket_ops::socket ( int  af,
int  type,
int  protocol,
asio::error_code ec 
) [inline]

asio::error_code asio::detail::socket_ops::translate_addrinfo_error ( int  error  )  [inline]


Generated on Sun May 25 00:21:35 2008 by  doxygen 1.5.6