Ticket #239: src__core__manager.h.diff
| File src__core__manager.h.diff, 1.1 KB (added by comer, 4 years ago) |
|---|
-
src/core/manager.h
old new 44 44 #include "poll_manager.h" 45 45 #include "log.h" 46 46 47 #include "ip_filter.h" 48 47 49 namespace torrent { 48 50 class Bencode; 49 51 } … … 107 109 108 110 void handshake_log(const sockaddr* sa, int msg, int err, const torrent::HashString* hash); 109 111 112 uint32_t filter_ip(const sockaddr* sa); 113 114 void set_ip_filter( IpFilter* ipFilter ) { 115 IpFilter* old = m_ipFilter; 116 m_ipFilter = ipFilter; 117 if( old ) delete old; 118 } 119 void reload_ip_filter(void); 120 110 121 static const int create_start = 0x1; 111 122 static const int create_tied = 0x2; 112 123 static const int create_quiet = 0x4; … … 137 148 PollManager* m_pollManager; 138 149 Log m_logImportant; 139 150 Log m_logComplete; 151 152 IpFilter* m_ipFilter; 140 153 }; 141 154 142 155 // Meh, cleanup.
