#include <serverauthenticate.h>
|
| ServerAuthenticate (mse::EncryptedPacketSocket::Ptr sock) |
|
| AuthenticateBase (mse::EncryptedPacketSocket::Ptr s) |
|
mse::EncryptedPacketSocket::Ptr | getSocket () const |
| get the socket
|
|
bool | isFinished () const |
| See if the authentication is finished.
|
|
bool | isLocal () const |
| Is this a local peer.
|
|
virtual void | onReadyRead () |
| We can read from the socket.
|
|
virtual void | onReadyWrite () |
| We can write to the socket (used to detect a succesfull connection)
|
|
void | setLocal (bool loc) |
| Set whether this is a local peer.
|
|
Uint32 | supportedExtensions () const |
| Flags indicating which extensions are supported.
|
|
|
static bool | isFirewalled () |
|
static void | setFirewalled (bool Firewalled) |
|
|
void | onError (int err) |
|
void | onTimeout () |
|
Uint32 | bytes_of_handshake_received |
|
Uint32 | ext_support |
|
bool | finished |
|
Uint8 | handshake [68] |
|
bool | local |
|
mse::EncryptedPacketSocket::Ptr | sock |
|
QTimer | timer |
|
- Author
- Joris Guisson
Handles the authentication of incoming connections on the Server. Once the authentication is finished, the socket gets handed over to the right PeerManager.
Definition at line 35 of file serverauthenticate.h.
◆ handshakeReceived()
void bt::ServerAuthenticate::handshakeReceived |
( |
bool |
full | ) |
|
|
overrideprotectedvirtual |
The other side send a handshake. The first 20 bytes of the handshake will already have been checked.
- Parameters
-
full | Indicates whether we have a full handshake if this is not full, we should just send our own |
Implements bt::AuthenticateBase.
◆ onFinish()
void bt::ServerAuthenticate::onFinish |
( |
bool |
succes | ) |
|
|
overrideprotectedvirtual |
The documentation for this class was generated from the following file: