* Allow loading torrents from https and ftp uri's.

* Added framework for commands on peers, but due to deficiencies in
the libtorrent API it won't be enabled yet.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@955 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2007-08-16 20:08:32 +00:00
parent 11976871ac
commit f117b9dd16
14 changed files with 482 additions and 12 deletions
+6 -1
View File
@@ -55,7 +55,12 @@ class timer {
timer round_seconds() const { return (m_time / 1000000) * 1000000; }
timeval tval() const { return (timeval) { m_time / 1000000, m_time % 1000000}; }
timeval tval() const {
timeval val;
val.tv_sec = m_time / 1000000;
val.tv_usec = m_time % 1000000;
return val;
}
static timer current();
static timer from_seconds(uint32_t seconds) { return rak::timer((uint64_t)seconds * 1000000); }