UDP Interface Handler must implement UDPSocketEvents.
More...
#include <UDP.h>
template<typename Handler, unsigned MaxDatagramSize>
class dev::p2p::UDPSocket< Handler, MaxDatagramSize >
UDP Interface Handler must implement UDPSocketEvents.
- Todo:
multiple endpoints (we cannot advertise 0.0.0.0)
decouple deque from UDPDatagram and add ref() to datagram for fire&forget
Definition at line 107 of file UDP.h.
template<typename Handler , unsigned MaxDatagramSize>
Enumerator |
---|
maxDatagramSize |
|
Definition at line 110 of file UDP.h.
template<typename Handler , unsigned MaxDatagramSize>
Create socket for specific endpoint.
Definition at line 114 of file UDP.h.
template<typename Handler , unsigned MaxDatagramSize>
Create socket which listens to all ports.
Definition at line 117 of file UDP.h.
template<typename Handler , unsigned MaxDatagramSize>
template<typename Handler , unsigned MaxDatagramSize>
Socket will begin listening for and delivering packets.
Definition at line 156 of file UDP.h.
template<typename Handler , unsigned MaxDatagramSize>
template<typename Handler , unsigned MaxDatagramSize>
void dev::p2p::UDPSocket< Handler, MaxDatagramSize >::disconnectWithError |
( |
boost::system::error_code |
_ec | ) |
|
|
protected |
template<typename Handler , unsigned MaxDatagramSize>
template<typename Handler , unsigned MaxDatagramSize>
template<typename Handler , unsigned MaxDatagramSize>
Returns if socket is open.
Definition at line 127 of file UDP.h.
template<typename Handler , unsigned MaxDatagramSize>
template<typename Handler , unsigned MaxDatagramSize>
Connection availability.
Definition at line 140 of file UDP.h.
template<typename Handler , unsigned MaxDatagramSize>
Endpoint which we listen to.
Definition at line 143 of file UDP.h.
template<typename Handler , unsigned MaxDatagramSize>
Interface which owns this socket.
Definition at line 142 of file UDP.h.
template<typename Handler , unsigned MaxDatagramSize>
Buffer for ingress data.
Definition at line 147 of file UDP.h.
template<typename Handler , unsigned MaxDatagramSize>
Endpoint data was received from.
Definition at line 148 of file UDP.h.
template<typename Handler , unsigned MaxDatagramSize>
Queue for egress data.
Definition at line 146 of file UDP.h.
template<typename Handler , unsigned MaxDatagramSize>
Boost asio udp socket.
Definition at line 149 of file UDP.h.
template<typename Handler , unsigned MaxDatagramSize>
Set when shut down due to error.
Definition at line 152 of file UDP.h.
template<typename Handler , unsigned MaxDatagramSize>
Atomically ensure connection is started once. Start cannot occur unless m_started is false. Managed by start and disconnectWithError.
Definition at line 139 of file UDP.h.
template<typename Handler , unsigned MaxDatagramSize>
template<typename Handler , unsigned MaxDatagramSize>
Mutex for error which can be set from host or IO thread.
Definition at line 151 of file UDP.h.
The documentation for this class was generated from the following file:
- src/cpp-ethereum/libp2p/UDP.h