My Project 3.2.0
C++ Distributed Hash Table
|
Public Member Functions | |
UdpSocket (in_port_t port, const std::shared_ptr< Logger > &l={}) | |
UdpSocket (const SockAddr &bind4, const SockAddr &bind6, const std::shared_ptr< Logger > &l={}) | |
int | sendTo (const SockAddr &dest, const uint8_t *data, size_t size, bool replied) override |
const SockAddr & | getBoundRef (sa_family_t family=AF_UNSPEC) const override |
bool | hasIPv4 () const override |
bool | hasIPv6 () const override |
void | stop () override |
![]() | |
void | setOnReceive (OnReceive &&cb) |
SockAddr | getBound (sa_family_t family=AF_UNSPEC) const |
in_port_t | getPort (sa_family_t family=AF_UNSPEC) const |
virtual std::vector< SockAddr > | resolve (const std::string &host, const std::string &service={}) |
Additional Inherited Members | |
![]() | |
using | OnReceive = std::function<PacketList(PacketList&& packets)> |
![]() | |
PacketList | getNewPacket () |
void | onReceived (PacketList &&packets) |
![]() | |
std::mutex | lock |
Definition at line 126 of file network_utils.h.
|
inlineoverridevirtual |
Implements dht::net::DatagramSocket.
Definition at line 134 of file network_utils.h.
|
inlineoverridevirtual |
Implements dht::net::DatagramSocket.
Definition at line 138 of file network_utils.h.
|
inlineoverridevirtual |
Implements dht::net::DatagramSocket.
Definition at line 142 of file network_utils.h.
|
overridevirtual |
Implements dht::net::DatagramSocket.
|
overridevirtual |
Implements dht::net::DatagramSocket.