libktorrent
2.1.1
|
#include <database.h>
Public Member Functions | |
DBItem (const DBItem &item) | |
DBItem (const net::Address &addr) | |
bool | expired (bt::TimeStamp now) const |
See if the item is expired. | |
const net::Address & | getAddress () const |
Get the address of an item. | |
DBItem & | operator= (const DBItem &item) |
bt::Uint32 | pack (bt::Uint8 *buf) const |
Item in the database, will keep track of an IP and port combination. As well as the time it was inserted.
Definition at line 62 of file database.h.
bt::Uint32 dht::DBItem::pack | ( | bt::Uint8 * | buf | ) | const |
Pack this item into a buffer, the buffer needs to big enough to handle IPv6 addresses (so 16 + 2 (for the port))
buf | The buffer |