libktorrent  2.1.1
Public Member Functions | List of all members
net::PortList Class Reference

#include <portlist.h>

Inheritance diagram for net::PortList:
Inheritance graph
[legend]

Public Member Functions

void addNewPort (bt::Uint16 number, Protocol proto, bool forward)
 
void removePort (bt::Uint16 number, Protocol proto)
 
void setListener (PortListener *pl)
 

Detailed Description

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

List of ports which are currently being used.

Definition at line 93 of file portlist.h.

Member Function Documentation

◆ addNewPort()

void net::PortList::addNewPort ( bt::Uint16  number,
Protocol  proto,
bool  forward 
)

When a port is in use, this function needs to be called.

Parameters
numberPort number
protoProtocol
forwardWhether or not it needs to be forwarded

◆ removePort()

void net::PortList::removePort ( bt::Uint16  number,
Protocol  proto 
)

Needs to be called when a port is not being using anymore.

Parameters
numberPort number
protoProtocol

◆ setListener()

void net::PortList::setListener ( PortListener pl)
inline

Set the port listener.

Parameters
plPort listener

Definition at line 119 of file portlist.h.


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