Show
Ignore:
Timestamp:
03/06/10 11:35:37 (2 years ago)
Author:
rakshasa
Message:

* Fixed a bug in reading bencoded data. #2112

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/libtorrent/src/protocol/extensions.h

    r1138 r1141  
    4141#include <vector> 
    4242 
    43 #include <torrent/exceptions.h> 
    44 #include <torrent/object.h> 
     43#include "torrent/exceptions.h" 
     44#include "torrent/object.h" 
     45#include "torrent/object_static_map.h" 
    4546 
    4647#include "download/download_info.h" 
     
    156157  char*               m_readPos; 
    157158}; 
     159 
     160// 
     161//  
     162// 
     163 
     164enum ext_handshake_keys { 
     165  key_e, 
     166  key_m_utPex, 
     167  key_p, 
     168  key_reqq, 
     169  key_v, 
     170  key_handshake_LAST 
     171}; 
     172 
     173enum ext_pex_keys { 
     174  key_pex_added, 
     175  key_pex_LAST 
     176}; 
     177 
     178typedef static_map_type<ext_handshake_keys, key_handshake_LAST> ExtHandshakeMessage; 
     179typedef static_map_type<ext_pex_keys, key_pex_LAST> ExtPEXMessage; 
     180 
     181// 
     182// 
     183// 
    158184 
    159185inline