libktorrent  2.2.0
Public Types | Public Member Functions | Static Public Member Functions | List of all members
bt::PeerConnector Class Reference

#include <peerconnector.h>

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

Public Types

enum  Method { TCP_WITH_ENCRYPTION, TCP_WITHOUT_ENCRYPTION, UTP_WITH_ENCRYPTION, UTP_WITHOUT_ENCRYPTION }
 
typedef QSharedPointer< PeerConnectorPtr
 
typedef QWeakPointer< PeerConnectorWPtr
 
- Public Types inherited from bt::Resource
typedef QList< Resource * > List
 
typedef QSet< Resource * > Set
 

Public Member Functions

 PeerConnector (const net::Address &addr, bool local, PeerManager *pman, ConnectionLimit::Token::Ptr token)
 
void authenticationFinished (bt::Authenticate *auth, bool ok)
 Called when an authentication attempt is finished.
 
void setWeakPointer (WPtr ptr)
 Set a weak pointer to this object.
 
void start ()
 Start connecting.
 
- Public Member Functions inherited from bt::Resource
 Resource (ResourceManager *rman, const QString &group)
 
QString groupName () const
 Get the name of the group the resource is part of.
 
void release ()
 Release the Resource.
 

Static Public Member Functions

static void setMaxActive (Uint32 mc)
 

Detailed Description

Class which connects to a peer.

Definition at line 66 of file peerconnector.h.

Member Function Documentation

◆ setMaxActive()

static void bt::PeerConnector::setMaxActive ( Uint32  mc)
static

Set the maximum number of active PeerConnectors allowed


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