libktorrent  2.2.0
Public Member Functions | List of all members
bt::Server Class Reference

#include <server.h>

Inheritance diagram for bt::Server:
Inheritance graph
[legend]

Public Member Functions

bool changePort (Uint16 port) override
 
- Public Member Functions inherited from bt::ServerInterface
 ServerInterface (QObject *parent=0)
 

Additional Inherited Members

- Static Public Member Functions inherited from bt::ServerInterface
static void addPeerManager (PeerManager *pman)
 
static QStringList bindAddresses ()
 
static void disableEncryption ()
 
static void enableEncryption (bool allow_unencrypted)
 
static bool findInfoHash (const SHA1Hash &skey, SHA1Hash &info_hash)
 
static PeerManagerfindPeerManager (const SHA1Hash &hash)
 
static Uint16 getPort ()
 Get the port in use.
 
static bool isEncryptionEnabled ()
 
static bool isUtpEnabled ()
 
static bool onlyUseUtp ()
 
static TransportProtocol primaryTransportProtocol ()
 
static void removePeerManager (PeerManager *pman)
 
static void setPort (Uint16 p)
 Set the port to use.
 
static void setPrimaryTransportProtocol (TransportProtocol proto)
 
static void setUtpEnabled (bool on, bool only_use_utp)
 
static bool unencryptedConnectionsAllowed ()
 
- Protected Member Functions inherited from bt::ServerInterface
void newConnection (mse::EncryptedPacketSocket::Ptr sock)
 
- Static Protected Attributes inherited from bt::ServerInterface
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
 

Detailed Description

Author
Joris Guisson

Class which listens for incoming connections. Handles authentication and then hands of the new connections to a PeerManager.

All PeerManager's should register with this class when they are created and should unregister when they are destroyed.

Definition at line 45 of file server.h.

Member Function Documentation

◆ changePort()

bool bt::Server::changePort ( Uint16  port)
overridevirtual

Change the port.

Parameters
portThe new port

Implements bt::ServerInterface.


The documentation for this class was generated from the following file: