fipa_services
Public Member Functions | Protected Attributes | List of all members
fipa::services::transports::Connection Class Reference

A connection is defined by a communication address. More...

#include <Connection.hpp>

Inheritance diagram for fipa::services::transports::Connection:
fipa::services::transports::OutgoingConnection fipa::services::transports::udt::IncomingConnection fipa::services::transports::tcp::OutgoingConnection fipa::services::transports::udt::OutgoingConnection

Public Member Functions

 Connection ()
 
 Connection (const std::string &ip, uint16_t port, const std::string &protocol="udt")
 
 Connection (const Address &address)
 
uint16_t getPort () const
 
std::string getIP () const
 
Address getAddress () const
 
bool operator== (const Connection &other) const
 

Protected Attributes

Address mAddress
 

Detailed Description

A connection is defined by a communication address.

See also
Address

Constructor & Destructor Documentation

◆ Connection() [1/3]

fipa::services::transports::Connection::Connection ( )

◆ Connection() [2/3]

fipa::services::transports::Connection::Connection ( const std::string &  ip,
uint16_t  port,
const std::string &  protocol = "udt" 
)

◆ Connection() [3/3]

fipa::services::transports::Connection::Connection ( const Address address)

Member Function Documentation

◆ getAddress()

Address fipa::services::transports::Connection::getAddress ( ) const
inline

◆ getIP()

std::string fipa::services::transports::Connection::getIP ( ) const
inline

◆ getPort()

uint16_t fipa::services::transports::Connection::getPort ( ) const
inline

◆ operator==()

bool fipa::services::transports::Connection::operator== ( const Connection other) const
inline

Member Data Documentation

◆ mAddress

Address fipa::services::transports::Connection::mAddress
protected

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