|
|
| UTPServer (QObject *parent=0) |
| |
|
Connection::WPtr | acceptedConnection () |
| | Get the last accepted connection (Note: for unittest purposes)
|
| |
| bool | changePort (bt::Uint16 port) override |
| |
|
Connection::WPtr | connectTo (const net::Address &addr) |
| | Setup a connection to a remote address.
|
| |
| void | handlePendingConnections () |
| |
|
void | preparePolling (net::Poll *p, net::Poll::Mode mode, Connection::Ptr &conn) |
| | Prepare the server for polling.
|
| |
|
bool | sendTo (Connection::Ptr conn, const PacketBuffer &packet) override |
| | Send a packet to some host.
|
| |
|
void | setCreateSockets (bool on) |
| | Enabled creating sockets (tests need to have this disabled)
|
| |
|
void | setTOS (bt::Uint8 type_of_service) |
| | Set the TOS byte.
|
| |
|
void | start () |
| | Start the UTP server.
|
| |
|
void | stop () |
| | Stop the UTP server.
|
| |
|
void | threadStarted () |
| | Thread has been started.
|
| |
|
| ServerInterface (QObject *parent=0) |
| |
|
| 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 PeerManager * | findPeerManager (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 () |
| |
|
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 |
| |
Implements the UTP server. It listens for UTP packets and manages all connections.
Definition at line 55 of file utpserver.h.