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

#include <udp_socket.hpp>

Classes

class  impl
 

Public Member Functions

 udp_socket ()
 
 udp_socket (const udp_socket &s)
 
 ~udp_socket ()
 
void open ()
 
void set_receive_buffer_size (size_t s)
 
void bind (const fc::ip::endpoint &)
 
size_t receive_from (char *b, size_t l, fc::ip::endpoint &from)
 
size_t receive_from (const std::shared_ptr< char > &b, size_t l, fc::ip::endpoint &from)
 
size_t send_to (const char *b, size_t l, const fc::ip::endpoint &to)
 
size_t send_to (const std::shared_ptr< const char > &b, size_t l, const fc::ip::endpoint &to)
 
void close ()
 
void set_multicast_enable_loopback (bool)
 
void set_reuse_address (bool)
 
void join_multicast_group (const fc::ip::address &a)
 
void connect (const fc::ip::endpoint &e)
 
fc::ip::endpoint local_endpoint () const
 

Detailed Description

The udp_socket class has reference semantics, all copies will refer to the same underlying socket.

Definition at line 14 of file udp_socket.hpp.

Constructor & Destructor Documentation

◆ udp_socket() [1/2]

fc::udp_socket::udp_socket ( )

Definition at line 26 of file udp_socket.cpp.

◆ udp_socket() [2/2]

fc::udp_socket::udp_socket ( const udp_socket s)

Definition at line 31 of file udp_socket.cpp.

◆ ~udp_socket()

fc::udp_socket::~udp_socket ( )

Definition at line 36 of file udp_socket.cpp.

Member Function Documentation

◆ bind()

void fc::udp_socket::bind ( const fc::ip::endpoint e)

Definition at line 93 of file udp_socket.cpp.

◆ close()

void fc::udp_socket::close ( )

Definition at line 148 of file udp_socket.cpp.

◆ connect()

void fc::udp_socket::connect ( const fc::ip::endpoint e)

Definition at line 156 of file udp_socket.cpp.

◆ join_multicast_group()

void fc::udp_socket::join_multicast_group ( const fc::ip::address a)

Definition at line 168 of file udp_socket.cpp.

◆ local_endpoint()

fc::ip::endpoint fc::udp_socket::local_endpoint ( ) const

Definition at line 153 of file udp_socket.cpp.

◆ open()

void fc::udp_socket::open ( )

Definition at line 86 of file udp_socket.cpp.

◆ receive_from() [1/2]

size_t fc::udp_socket::receive_from ( char *  b,
size_t  l,
fc::ip::endpoint from 
)

Definition at line 123 of file udp_socket.cpp.

◆ receive_from() [2/2]

size_t fc::udp_socket::receive_from ( const std::shared_ptr< char > &  b,
size_t  l,
fc::ip::endpoint from 
)

Definition at line 97 of file udp_socket.cpp.

◆ send_to() [1/2]

size_t fc::udp_socket::send_to ( const char *  b,
size_t  l,
const fc::ip::endpoint to 
)

Definition at line 47 of file udp_socket.cpp.

◆ send_to() [2/2]

size_t fc::udp_socket::send_to ( const std::shared_ptr< const char > &  b,
size_t  l,
const fc::ip::endpoint to 
)

Definition at line 66 of file udp_socket.cpp.

◆ set_multicast_enable_loopback()

void fc::udp_socket::set_multicast_enable_loopback ( bool  s)

Definition at line 160 of file udp_socket.cpp.

◆ set_receive_buffer_size()

void fc::udp_socket::set_receive_buffer_size ( size_t  s)

Definition at line 90 of file udp_socket.cpp.

◆ set_reuse_address()

void fc::udp_socket::set_reuse_address ( bool  s)

Definition at line 164 of file udp_socket.cpp.


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