libtorrent::detail Namespace Reference


Classes

struct  max2
struct  max3
struct  max4
struct  type
class  filter_impl

Functions

template<class Handler, BOOST_PP_ENUM_PARAMS(TORRENT_MAX_ALERT_TYPES, class T) >
void handle_alert_dispatch (const std::auto_ptr< alert > &alert_, const Handler &handler, const std::type_info &typeid_, BOOST_PP_ENUM_BINARY_PARAMS(TORRENT_MAX_ALERT_TYPES, T,*p))
template<class Handler>
void handle_alert_dispatch (const std::auto_ptr< alert > &alert_, const Handler &handler, const std::type_info &typeid_, BOOST_PP_ENUM_PARAMS(TORRENT_MAX_ALERT_TYPES, void_ *BOOST_PP_INTERCEPT))
template<class OutIt>
void write_string (OutIt &out, const std::string &val)
TORRENT_EXPORT char const * integer_to_str (char *buf, int size, entry::integer_type val)
template<class OutIt>
void write_integer (OutIt &out, entry::integer_type val)
template<class OutIt>
void write_char (OutIt &out, char c)
template<class InIt>
std::string read_until (InIt &in, InIt end, char end_token)
template<class InIt>
void read_string (InIt &in, InIt end, int len, std::string &str)
template<class OutIt>
void bencode_recursive (OutIt &out, const entry &e)
template<class InIt>
void bdecode_recursive (InIt &in, InIt end, entry &ret)
template<class T, class InIt>
read_impl (InIt &start, type< T >)
template<class T, class OutIt>
void write_impl (T val, OutIt &start)
template<class InIt>
boost::int64_t read_int64 (InIt &start)
template<class InIt>
boost::uint64_t read_uint64 (InIt &start)
template<class InIt>
boost::uint32_t read_uint32 (InIt &start)
template<class InIt>
boost::int32_t read_int32 (InIt &start)
template<class InIt>
boost::int16_t read_int16 (InIt &start)
template<class InIt>
boost::uint16_t read_uint16 (InIt &start)
template<class InIt>
boost::int8_t read_int8 (InIt &start)
template<class InIt>
boost::uint8_t read_uint8 (InIt &start)
template<class OutIt>
void write_uint64 (boost::uint64_t val, OutIt &start)
template<class OutIt>
void write_int64 (boost::int64_t val, OutIt &start)
template<class OutIt>
void write_uint32 (boost::uint32_t val, OutIt &start)
template<class OutIt>
void write_int32 (boost::int32_t val, OutIt &start)
template<class OutIt>
void write_uint16 (boost::uint16_t val, OutIt &start)
template<class OutIt>
void write_int16 (boost::int16_t val, OutIt &start)
template<class OutIt>
void write_uint8 (boost::uint8_t val, OutIt &start)
template<class OutIt>
void write_int8 (boost::int8_t val, OutIt &start)
template<class OutIt>
void write_address (address const &a, OutIt &out)
template<class InIt>
address read_v4_address (InIt &in)
template<class InIt>
address read_v6_address (InIt &in)
template<class Endpoint, class OutIt>
void write_endpoint (Endpoint const &e, OutIt &out)
template<class Endpoint, class InIt>
Endpoint read_v4_endpoint (InIt &in)
template<class Endpoint, class InIt>
Endpoint read_v6_endpoint (InIt &in)
template<typename InputIterator>
wchar_t decode_utf8_mb (InputIterator &iter, InputIterator last)
template<typename InputIterator>
wchar_t decode_utf8 (InputIterator &iter, InputIterator last)
template<typename InputIterator, typename OutputIterator>
OutputIterator utf8_wchar (InputIterator first, InputIterator last, OutputIterator dest)
template<typename InputIterator, typename OutputIterator>
void encode_wchar (InputIterator iter, OutputIterator &dest)
template<typename InputIterator, typename OutputIterator>
OutputIterator wchar_utf8 (InputIterator first, InputIterator last, OutputIterator dest)
std::string generate_auth_string (std::string const &user, std::string const &passwd)


Function Documentation

template<class InIt>
void libtorrent::detail::bdecode_recursive ( InIt &  in,
InIt  end,
entry &  ret 
) [inline]

template<class OutIt>
void libtorrent::detail::bencode_recursive ( OutIt &  out,
const entry &  e 
) [inline]

template<typename InputIterator>
wchar_t libtorrent::detail::decode_utf8 ( InputIterator &  iter,
InputIterator  last 
) [inline]

Definition at line 44 of file utf8.hpp.

References decode_utf8_mb().

Referenced by utf8_wchar().

template<typename InputIterator>
wchar_t libtorrent::detail::decode_utf8_mb ( InputIterator &  iter,
InputIterator  last 
) [inline]

Definition at line 35 of file utf8.hpp.

Referenced by decode_utf8().

template<typename InputIterator, typename OutputIterator>
void libtorrent::detail::encode_wchar ( InputIterator  iter,
OutputIterator &  dest 
) [inline]

Definition at line 80 of file utf8.hpp.

Referenced by wchar_utf8().

std::string libtorrent::detail::generate_auth_string ( std::string const &  user,
std::string const &  passwd 
)

Definition at line 61 of file session_impl.cpp.

template<class Handler>
void libtorrent::detail::handle_alert_dispatch ( const std::auto_ptr< alert > &  alert_,
const Handler &  handler,
const std::type_info &  typeid_,
BOOST_PP_ENUM_PARAMS(TORRENT_MAX_ALERT_TYPES, void_ *BOOST_PP_INTERCEPT)   
) [inline]

Definition at line 137 of file alert.hpp.

Referenced by libtorrent::handle_alert<>::handle_alert().

template<class Handler, BOOST_PP_ENUM_PARAMS(TORRENT_MAX_ALERT_TYPES, class T) >
void libtorrent::detail::handle_alert_dispatch ( const std::auto_ptr< alert > &  alert_,
const Handler &  handler,
const std::type_info &  typeid_,
BOOST_PP_ENUM_BINARY_PARAMS(TORRENT_MAX_ALERT_TYPES, T,*p)   
) [inline]

Definition at line 119 of file alert.hpp.

References TORRENT_MAX_ALERT_TYPES.

TORRENT_EXPORT char const * libtorrent::detail::integer_to_str ( char *  buf,
int  size,
entry::integer_type  val 
)

Definition at line 48 of file entry.cpp.

Referenced by write_integer().

template<class T, class InIt>
T libtorrent::detail::read_impl ( InIt &  start,
type< T >   
) [inline]

template<class InIt>
boost::int16_t libtorrent::detail::read_int16 ( InIt &  start  )  [inline]

Definition at line 89 of file io.hpp.

References read_impl().

template<class InIt>
boost::int32_t libtorrent::detail::read_int32 ( InIt &  start  )  [inline]

template<class InIt>
boost::int64_t libtorrent::detail::read_int64 ( InIt &  start  )  [inline]

Definition at line 73 of file io.hpp.

References read_impl().

Referenced by libtorrent::udp_tracker_connection::connect_response().

template<class InIt>
boost::int8_t libtorrent::detail::read_int8 ( InIt &  start  )  [inline]

Definition at line 97 of file io.hpp.

References read_impl().

template<class InIt>
void libtorrent::detail::read_string ( InIt &  in,
InIt  end,
int  len,
std::string &  str 
) [inline]

Definition at line 150 of file bencode.hpp.

Referenced by bdecode_recursive().

template<class InIt>
boost::uint16_t libtorrent::detail::read_uint16 ( InIt &  start  )  [inline]

template<class InIt>
boost::uint32_t libtorrent::detail::read_uint32 ( InIt &  start  )  [inline]

Definition at line 81 of file io.hpp.

References read_impl().

Referenced by read_v4_address().

template<class InIt>
boost::uint64_t libtorrent::detail::read_uint64 ( InIt &  start  )  [inline]

Definition at line 77 of file io.hpp.

References read_impl().

template<class InIt>
boost::uint8_t libtorrent::detail::read_uint8 ( InIt &  start  )  [inline]

template<class InIt>
std::string libtorrent::detail::read_until ( InIt &  in,
InIt  end,
char  end_token 
) [inline]

Definition at line 136 of file bencode.hpp.

Referenced by bdecode_recursive().

template<class InIt>
address libtorrent::detail::read_v4_address ( InIt &  in  )  [inline]

Definition at line 114 of file socket.hpp.

References ip, and read_uint32().

Referenced by read_v4_endpoint().

template<class Endpoint, class InIt>
Endpoint libtorrent::detail::read_v4_endpoint ( InIt &  in  )  [inline]

Definition at line 139 of file socket.hpp.

References read_uint16(), and read_v4_address().

template<class InIt>
address libtorrent::detail::read_v6_address ( InIt &  in  )  [inline]

Definition at line 121 of file socket.hpp.

References asio::placeholders::iterator, and read_uint8().

Referenced by read_v6_endpoint().

template<class Endpoint, class InIt>
Endpoint libtorrent::detail::read_v6_endpoint ( InIt &  in  )  [inline]

Definition at line 147 of file socket.hpp.

References read_uint16(), and read_v6_address().

template<typename InputIterator, typename OutputIterator>
OutputIterator libtorrent::detail::utf8_wchar ( InputIterator  first,
InputIterator  last,
OutputIterator  dest 
) [inline]

Definition at line 72 of file utf8.hpp.

References decode_utf8().

template<typename InputIterator, typename OutputIterator>
OutputIterator libtorrent::detail::wchar_utf8 ( InputIterator  first,
InputIterator  last,
OutputIterator  dest 
) [inline]

Definition at line 124 of file utf8.hpp.

References encode_wchar().

template<class OutIt>
void libtorrent::detail::write_address ( address const &  a,
OutIt &  out 
) [inline]

template<class OutIt>
void libtorrent::detail::write_char ( OutIt &  out,
char  c 
) [inline]

Definition at line 129 of file bencode.hpp.

Referenced by bencode_recursive().

template<class Endpoint, class OutIt>
void libtorrent::detail::write_endpoint ( Endpoint const &  e,
OutIt &  out 
) [inline]

template<class T, class OutIt>
void libtorrent::detail::write_impl ( val,
OutIt &  start 
) [inline]

template<class OutIt>
void libtorrent::detail::write_int16 ( boost::int16_t  val,
OutIt &  start 
) [inline]

Definition at line 126 of file io.hpp.

References write_impl().

template<class OutIt>
void libtorrent::detail::write_int32 ( boost::int32_t  val,
OutIt &  start 
) [inline]

template<class OutIt>
void libtorrent::detail::write_int64 ( boost::int64_t  val,
OutIt &  start 
) [inline]

template<class OutIt>
void libtorrent::detail::write_int8 ( boost::int8_t  val,
OutIt &  start 
) [inline]

Definition at line 134 of file io.hpp.

References write_impl().

template<class OutIt>
void libtorrent::detail::write_integer ( OutIt &  out,
entry::integer_type  val 
) [inline]

Definition at line 113 of file bencode.hpp.

References BOOST_STATIC_ASSERT(), and integer_to_str().

Referenced by bencode_recursive().

template<class OutIt>
void libtorrent::detail::write_string ( OutIt &  out,
const std::string &  val 
) [inline]

Definition at line 104 of file bencode.hpp.

Referenced by bencode_recursive().

template<class OutIt>
void libtorrent::detail::write_uint16 ( boost::uint16_t  val,
OutIt &  start 
) [inline]

template<class OutIt>
void libtorrent::detail::write_uint32 ( boost::uint32_t  val,
OutIt &  start 
) [inline]

template<class OutIt>
void libtorrent::detail::write_uint64 ( boost::uint64_t  val,
OutIt &  start 
) [inline]

Definition at line 106 of file io.hpp.

References write_impl().

template<class OutIt>
void libtorrent::detail::write_uint8 ( boost::uint8_t  val,
OutIt &  start 
) [inline]


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