#include <serverinterface.h>
|
| ServerInterface (QObject *parent=0) |
|
virtual bool | changePort (Uint16 port)=0 |
|
|
void | newConnection (mse::EncryptedPacketSocket::Ptr sock) |
|
|
static bool | allow_unencrypted |
|
static bool | encryption |
|
static bool | only_use_utp |
|
static QList< PeerManager * > | peer_managers |
|
static Uint16 | port |
|
static TransportProtocol | primary_transport_protocol |
|
static bool | utp_enabled |
|
Base class for all servers which accept connections.
Definition at line 57 of file serverinterface.h.
◆ addPeerManager()
static void bt::ServerInterface::addPeerManager |
( |
PeerManager * |
pman | ) |
|
|
static |
◆ bindAddresses()
static QStringList bt::ServerInterface::bindAddresses |
( |
| ) |
|
|
static |
Get a list of potential IP addresses to bind to
◆ changePort()
virtual bool bt::ServerInterface::changePort |
( |
Uint16 |
port | ) |
|
|
pure virtual |
◆ disableEncryption()
static void bt::ServerInterface::disableEncryption |
( |
| ) |
|
|
static |
Disable encrypted authentication.
◆ enableEncryption()
static void bt::ServerInterface::enableEncryption |
( |
bool |
allow_unencrypted | ) |
|
|
static |
Enable encryption.
- Parameters
-
allow_unencrypted | Allow unencrypted connections (if encryption fails) |
◆ findInfoHash()
static bool bt::ServerInterface::findInfoHash |
( |
const SHA1Hash & |
skey, |
|
|
SHA1Hash & |
info_hash |
|
) |
| |
|
static |
Find the info_hash based on the skey hash. The skey hash is a hash of 'req2' followed by the info_hash. This function finds the info_hash which matches the skey hash.
- Parameters
-
skey | HASH('req2',info_hash) |
info_hash | which matches |
- Returns
- true If one was found
◆ findPeerManager()
Find the PeerManager given the info_hash of it's torrent.
- Parameters
-
- Returns
- The PeerManager or 0 if one can't be found
◆ removePeerManager()
static void bt::ServerInterface::removePeerManager |
( |
PeerManager * |
pman | ) |
|
|
static |
The documentation for this class was generated from the following file: