TARAXA
dev::p2p::UDPSocketEvents Struct Referenceabstract

Interface which a UDPSocket's owner must implement. More...

#include <UDP.h>

Public Member Functions

virtual ~UDPSocketEvents ()=default
 
virtual void onSocketDisconnected (UDPSocketFace *)
 
virtual void onPacketReceived (UDPSocketFace *, bi::udp::endpoint const &_from, bytesConstRef _packetData)=0
 

Detailed Description

Interface which a UDPSocket's owner must implement.

Constructor & Destructor Documentation

◆ ~UDPSocketEvents()

virtual dev::p2p::UDPSocketEvents::~UDPSocketEvents ( )
virtualdefault

Member Function Documentation

◆ onPacketReceived()

virtual void dev::p2p::UDPSocketEvents::onPacketReceived ( UDPSocketFace ,
bi::udp::endpoint const &  _from,
bytesConstRef  _packetData 
)
pure virtual

Implemented in dev::p2p::NodeTable.

◆ onSocketDisconnected()

virtual void dev::p2p::UDPSocketEvents::onSocketDisconnected ( UDPSocketFace )
inlinevirtual

Reimplemented in dev::p2p::NodeTable.


The documentation for this struct was generated from the following file: