BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
Classes | Public Member Functions | List of all members
fc::tcp_server Class Reference

#include <tcp_socket.hpp>

Classes

class  impl
 

Public Member Functions

 tcp_server ()
 
 ~tcp_server ()
 
void close ()
 
void accept (tcp_socket &s)
 
void set_reuse_address (bool enable=true)
 
void listen (uint16_t port)
 
void listen (const fc::ip::endpoint &ep)
 
fc::ip::endpoint get_local_endpoint () const
 
uint16_t get_port () const
 

Detailed Description

Definition at line 70 of file tcp_socket.hpp.

Constructor & Destructor Documentation

◆ tcp_server()

fc::tcp_server::tcp_server ( )

Definition at line 294 of file tcp_socket.cpp.

◆ ~tcp_server()

fc::tcp_server::~tcp_server ( )

Definition at line 297 of file tcp_socket.cpp.

Member Function Documentation

◆ accept()

void fc::tcp_server::accept ( tcp_socket s)

Definition at line 302 of file tcp_socket.cpp.

◆ close()

void fc::tcp_server::close ( )

Definition at line 288 of file tcp_socket.cpp.

◆ get_local_endpoint()

fc::ip::endpoint fc::tcp_server::get_local_endpoint ( ) const

Definition at line 356 of file tcp_socket.cpp.

◆ get_port()

uint16_t fc::tcp_server::get_port ( ) const

Definition at line 363 of file tcp_socket.cpp.

◆ listen() [1/2]

void fc::tcp_server::listen ( const fc::ip::endpoint ep)

Definition at line 344 of file tcp_socket.cpp.

◆ listen() [2/2]

void fc::tcp_server::listen ( uint16_t  port)

Definition at line 333 of file tcp_socket.cpp.

◆ set_reuse_address()

void fc::tcp_server::set_reuse_address ( bool  enable = true)

Definition at line 310 of file tcp_socket.cpp.


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