libktorrent  2.2.0
Public Member Functions | List of all members
mse::EncryptedAuthenticate Class Reference

#include <encryptedauthenticate.h>

Inheritance diagram for mse::EncryptedAuthenticate:
Inheritance graph
[legend]

Public Member Functions

 EncryptedAuthenticate (const net::Address &addr, bt::TransportProtocol proto, const bt::SHA1Hash &info_hash, const bt::PeerID &peer_id, bt::PeerConnector::WPtr pcon)
 
- Public Member Functions inherited from bt::Authenticate
 Authenticate (const net::Address &addr, TransportProtocol proto, const SHA1Hash &info_hash, const PeerID &peer_id, PeerConnector::WPtr pcon)
 
const PeerIDgetPeerID () const
 
bool isSuccesfull () const
 See if the authentication is succesfull.
 
- Public Member Functions inherited from bt::AuthenticateBase
 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.
 

Additional Inherited Members

- Public Slots inherited from bt::Authenticate
void stop ()
 Stop the authentication.
 
- Protected Slots inherited from bt::Authenticate
void onReadyRead () override
 
void onReadyWrite () override
 
- Protected Slots inherited from bt::AuthenticateBase
void onError (int err)
 
void onTimeout ()
 
- Protected Member Functions inherited from bt::Authenticate
virtual void connected ()
 
void handshakeReceived (bool full) override
 
void onFinish (bool succes) override
 
- Protected Member Functions inherited from bt::AuthenticateBase
void makeHandshake (bt::Uint8 *buf, const SHA1Hash &info_hash, const PeerID &our_peer_id)
 
void sendHandshake (const SHA1Hash &info_hash, const PeerID &our_peer_id)
 
- Protected Attributes inherited from bt::Authenticate
net::Address addr
 
SHA1Hash info_hash
 
PeerID our_peer_id
 
PeerConnector::WPtr pcon
 
PeerID peer_id
 
net::Sockssocks
 
bool succes
 
- Protected Attributes inherited from bt::AuthenticateBase
Uint32 bytes_of_handshake_received
 
Uint32 ext_support
 
bool finished
 
Uint8 handshake [68]
 
bool local
 
mse::EncryptedPacketSocket::Ptr sock
 
QTimer timer
 

Detailed Description

Author
Joris Guisson joris.nosp@m..gui.nosp@m.sson@.nosp@m.gmai.nosp@m.l.com

Encrypted version of the Authenticate class

Definition at line 40 of file encryptedauthenticate.h.


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