BitShares-Core  4.0.0
BitShares blockchain implementation and command-line interface 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 ()
 
 endpoint (const address &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 43 of file ip.hpp.

Constructor & Destructor Documentation

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

Definition at line 52 of file ip.cpp.

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

Definition at line 54 of file ip.cpp.

Member Function Documentation

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

Converts "IP:PORT" to an endpoint

Definition at line 74 of file ip.cpp.

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

Definition at line 72 of file ip.cpp.

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

returns "IP:PORT"

Definition at line 87 of file ip.cpp.

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

Definition at line 71 of file ip.cpp.

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

Definition at line 53 of file ip.hpp.

Friends And Related Function Documentation

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

Definition at line 60 of file ip.cpp.

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

Definition at line 64 of file ip.cpp.

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

Definition at line 57 of file ip.cpp.


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