forked from premiere/premiere-libtorrent
made allocate_send_buffer, setup_send and send_buffer virtual in peer_connection. Fixes #196
This commit is contained in:
parent
1a280e31fa
commit
d2880ff648
|
@ -367,8 +367,12 @@ namespace libtorrent
|
||||||
return boost::optional<piece_block_progress>();
|
return boost::optional<piece_block_progress>();
|
||||||
}
|
}
|
||||||
|
|
||||||
void send_buffer(char const* begin, int size);
|
// these functions are virtual to let bt_peer_connection hook into them
|
||||||
buffer::interval allocate_send_buffer(int size);
|
// and encrypt the content
|
||||||
|
virtual void send_buffer(char const* begin, int size);
|
||||||
|
virtual buffer::interval allocate_send_buffer(int size);
|
||||||
|
virtual void setup_send();
|
||||||
|
|
||||||
template <class Destructor>
|
template <class Destructor>
|
||||||
void append_send_buffer(char* buffer, int size, Destructor const& destructor)
|
void append_send_buffer(char* buffer, int size, Destructor const& destructor)
|
||||||
{
|
{
|
||||||
|
@ -378,7 +382,6 @@ namespace libtorrent
|
||||||
m_ses.log_buffer_usage();
|
m_ses.log_buffer_usage();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
void setup_send();
|
|
||||||
|
|
||||||
#ifndef TORRENT_DISABLE_RESOLVE_COUNTRIES
|
#ifndef TORRENT_DISABLE_RESOLVE_COUNTRIES
|
||||||
void set_country(char const* c)
|
void set_country(char const* c)
|
||||||
|
|
Loading…
Reference in New Issue