D:/opendownloadmanager/ODM-1.x/Bittorrent/libtorrent-0.12/src/identify_client.cpp File Reference

#include <cctype>
#include <algorithm>
#include <boost/optional.hpp>
#include "libtorrent/identify_client.hpp"
#include "libtorrent/fingerprint.hpp"

Go to the source code of this file.

Namespaces

namespace  libtorrent

Typedefs

typedef std::pair< char const
*, char const * > 
map_entry

Functions

int decode_digit (char c)
boost::optional< fingerprintparse_az_style (const peer_id &id)
boost::optional< fingerprintparse_shadow_style (const peer_id &id)
boost::optional< fingerprintparse_mainline_style (const peer_id &id)
bool compare_first_string (map_entry const &lhs, map_entry const &rhs)
std::string lookup (fingerprint const &f)
bool find_string (unsigned char const *id, char const *search)
TORRENT_EXPORT boost::optional
< fingerprint
libtorrent::client_fingerprint (peer_id const &p)
TORRENT_EXPORT std::string libtorrent::identify_client (const peer_id &p)

Variables

map_entry name_map []


Typedef Documentation

typedef std::pair<char const*, char const*> map_entry [static]

Definition at line 111 of file identify_client.cpp.


Function Documentation

bool @269::compare_first_string ( map_entry const &  lhs,
map_entry const &  rhs 
) [static]

Definition at line 164 of file identify_client.cpp.

Referenced by lookup().

int @269::decode_digit ( char  c  )  [static]

Definition at line 29 of file identify_client.cpp.

Referenced by parse_az_style(), and parse_shadow_style().

bool @269::find_string ( unsigned char const *  id,
char const *  search 
) [static]

Definition at line 205 of file identify_client.cpp.

Referenced by libtorrent::identify_client().

std::string @269::lookup ( fingerprint const &  f  )  [static]

boost::optional<fingerprint> @269::parse_az_style ( const peer_id id  )  [static]

boost::optional<fingerprint> @269::parse_mainline_style ( const peer_id id  )  [static]

boost::optional<fingerprint> @269::parse_shadow_style ( const peer_id id  )  [static]


Variable Documentation

map_entry name_map[] [static]

Definition at line 115 of file identify_client.cpp.


Generated on Sun May 25 00:19:42 2008 by  doxygen 1.5.6