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.cc

    r1140 r1141  
    4646#include "protocol/peer_connection_base.h" 
    4747#include "torrent/connection_manager.h" 
    48 #include "torrent/object.h" 
    4948#include "torrent/object_stream.h" 
    5049#include "torrent/peer/connection_list.h" 
    5150#include "torrent/peer/peer_info.h" 
    52 #include "torrent/object_static_map.h" 
    5351#include "manager.h" 
    5452 
     
    5654 
    5755namespace torrent { 
    58  
    59 enum ext_handshake_keys { 
    60   key_e, 
    61   key_m_utPex, 
    62   key_p, 
    63   key_reqq, 
    64   key_v, 
    65   key_handshake_LAST 
    66 }; 
    67  
    68 enum ext_pex_keys { 
    69   key_pex_added, 
    70   key_pex_LAST 
    71 }; 
    72  
    73 typedef static_map_type<ext_handshake_keys, key_handshake_LAST> ExtHandshakeMessage; 
    74 typedef static_map_type<ext_pex_keys, key_pex_LAST> ExtPEXMessage; 
    7556 
    7657template <>