forked from premiere/premiere-libtorrent
merged changes from RC_1_0
This commit is contained in:
parent
7cb2f79377
commit
7118387926
|
@ -122,7 +122,7 @@ A very simple example usage of the module would be something like this::
|
||||||
e = lt.bdecode(open("test.torrent", 'rb').read())
|
e = lt.bdecode(open("test.torrent", 'rb').read())
|
||||||
info = lt.torrent_info(e)
|
info = lt.torrent_info(e)
|
||||||
|
|
||||||
params = { save_path: './', \
|
params = { save_path: '.', \
|
||||||
storage_mode: lt.storage_mode_t.storage_mode_sparse, \
|
storage_mode: lt.storage_mode_t.storage_mode_sparse, \
|
||||||
ti: info }
|
ti: info }
|
||||||
h = ses.add_torrent(params)
|
h = ses.add_torrent(params)
|
||||||
|
|
|
@ -156,6 +156,10 @@ namespace libtorrent
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
// non-copyable
|
||||||
|
udp_socket(udp_socket const&);
|
||||||
|
udp_socket& operator=(udp_socket const&);
|
||||||
|
|
||||||
// observers on this udp socket
|
// observers on this udp socket
|
||||||
std::vector<udp_socket_observer*> m_observers;
|
std::vector<udp_socket_observer*> m_observers;
|
||||||
std::vector<udp_socket_observer*> m_added_observers;
|
std::vector<udp_socket_observer*> m_added_observers;
|
||||||
|
|
Loading…
Reference in New Issue