Remote Call Framework 3.4
RCF::TcpEndpoint Class Reference

Represents a TCP endpoint. More...

#include <TcpEndpoint.hpp>

Inheritance diagram for RCF::TcpEndpoint:
RCF::Endpoint RCF::HttpEndpoint RCF::HttpsEndpoint

Public Member Functions

 TcpEndpoint (int port)
 Constructs a TcpEndpoint from a port number. The IP address defaults to 127.0.0.1 . More...
 
 TcpEndpoint (const std::string &ip, int port)
 Constructs a TcpEndpoint from an IP address and port number. More...
 
std::string getIp () const
 Gets the IP address of the TcpEndpoint. More...
 
int getPort () const
 Gets the port number of the TcpEndpoint. More...
 
std::string asString () const
 Returns a string representation of the TcpEndpoint. More...
 

Detailed Description

Represents a TCP endpoint.

Constructor & Destructor Documentation

◆ TcpEndpoint() [1/2]

RCF::TcpEndpoint::TcpEndpoint ( int  port)

Constructs a TcpEndpoint from a port number. The IP address defaults to 127.0.0.1 .

◆ TcpEndpoint() [2/2]

RCF::TcpEndpoint::TcpEndpoint ( const std::string &  ip,
int  port 
)

Constructs a TcpEndpoint from an IP address and port number.

Member Function Documentation

◆ getIp()

std::string RCF::TcpEndpoint::getIp ( ) const

Gets the IP address of the TcpEndpoint.

◆ getPort()

int RCF::TcpEndpoint::getPort ( ) const

Gets the port number of the TcpEndpoint.

◆ asString()

std::string RCF::TcpEndpoint::asString ( ) const
virtual

Returns a string representation of the TcpEndpoint.

Implements RCF::Endpoint.


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