BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
Public Member Functions | Static Public Member Functions | Friends | List of all members
fc::ip::endpoint Class Reference

#include <ip.hpp>

Public Member Functions

 endpoint ()=default
 
 endpoint (const address &i, uint16_t p=0)
 
 endpoint (uint32_t i, uint16_t p=0)
 
 operator string () const
 
void set_port (uint16_t p)
 
uint16_t port () const
 
const addressget_address () const
 

Static Public Member Functions

static endpoint from_string (const string &s)
 

Friends

bool operator== (const endpoint &a, const endpoint &b)
 
bool operator!= (const endpoint &a, const endpoint &b)
 
bool operator< (const endpoint &a, const endpoint &b)
 

Detailed Description

Definition at line 65 of file ip.hpp.

Constructor & Destructor Documentation

◆ endpoint() [1/3]

fc::ip::endpoint::endpoint ( )
default

◆ endpoint() [2/3]

fc::ip::endpoint::endpoint ( const address i,
uint16_t  p = 0 
)
explicit

Definition at line 58 of file ip.cpp.

◆ endpoint() [3/3]

fc::ip::endpoint::endpoint ( uint32_t  i,
uint16_t  p = 0 
)
explicit

Definition at line 61 of file ip.cpp.

Member Function Documentation

◆ from_string()

endpoint fc::ip::endpoint::from_string ( const string &  s)
static

Converts "IP:PORT" to an endpoint

Definition at line 81 of file ip.cpp.

◆ get_address()

const address & fc::ip::endpoint::get_address ( ) const

Definition at line 79 of file ip.cpp.

◆ operator string()

fc::ip::endpoint::operator string ( ) const
explicit

returns "IP:PORT"

Definition at line 94 of file ip.cpp.

◆ port()

uint16_t fc::ip::endpoint::port ( ) const

Definition at line 78 of file ip.cpp.

◆ set_port()

void fc::ip::endpoint::set_port ( uint16_t  p)
inline

Definition at line 76 of file ip.hpp.

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( const endpoint a,
const endpoint b 
)
friend

Definition at line 67 of file ip.cpp.

◆ operator<

bool operator< ( const endpoint a,
const endpoint b 
)
friend

Definition at line 71 of file ip.cpp.

◆ operator==

bool operator== ( const endpoint a,
const endpoint b 
)
friend

Definition at line 64 of file ip.cpp.


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