BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
|
#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 |
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.
fc::udp_socket::udp_socket | ( | ) |
Definition at line 26 of file udp_socket.cpp.
fc::udp_socket::udp_socket | ( | const udp_socket & | s | ) |
Definition at line 31 of file udp_socket.cpp.
fc::udp_socket::~udp_socket | ( | ) |
Definition at line 36 of file udp_socket.cpp.
void fc::udp_socket::bind | ( | const fc::ip::endpoint & | e | ) |
Definition at line 93 of file udp_socket.cpp.
void fc::udp_socket::close | ( | ) |
Definition at line 148 of file udp_socket.cpp.
void fc::udp_socket::connect | ( | const fc::ip::endpoint & | e | ) |
Definition at line 156 of file udp_socket.cpp.
void fc::udp_socket::join_multicast_group | ( | const fc::ip::address & | a | ) |
Definition at line 168 of file udp_socket.cpp.
fc::ip::endpoint fc::udp_socket::local_endpoint | ( | ) | const |
Definition at line 153 of file udp_socket.cpp.
void fc::udp_socket::open | ( | ) |
Definition at line 86 of file udp_socket.cpp.
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.
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.
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.
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.
void fc::udp_socket::set_multicast_enable_loopback | ( | bool | s | ) |
Definition at line 160 of file udp_socket.cpp.
void fc::udp_socket::set_receive_buffer_size | ( | size_t | s | ) |
Definition at line 90 of file udp_socket.cpp.
void fc::udp_socket::set_reuse_address | ( | bool | s | ) |
Definition at line 164 of file udp_socket.cpp.