Skip to main content

SleepyDiscord::GenericUDPClient

Inherited by SleepyDiscord::ASIOUDPClient, SleepyDiscord::CustomUDPClient

Public Types Documentation​

typedef SendHandler​

typedef std::function<void()> SleepyDiscord::GenericUDPClient::SendHandler;

typedef ReceiveHandler​

typedef std::function<void(const std::vector<uint8_t>&)> SleepyDiscord::GenericUDPClient::ReceiveHandler;

Public Functions Documentation​

function connect​

virtual bool connect(
const std::string & to,
const uint16_t port
) =0

Reimplemented by: SleepyDiscord::CustomUDPClient::connect, SleepyDiscord::ASIOUDPClient::connect

function send​

virtual void send(
const uint8_t * buffer,
size_t bufferLength,
SendHandler handler =[](){}
) =0

Reimplemented by: SleepyDiscord::CustomUDPClient::send, SleepyDiscord::ASIOUDPClient::send

function receive​

virtual void receive(
ReceiveHandler handler
) =0

Reimplemented by: SleepyDiscord::ASIOUDPClient::receive, SleepyDiscord::CustomUDPClient::receive

function send​

inline void send(
const std::vector< uint8_t > buffer,
SendHandler handler =[](){}
)

Updated on 13 April 2022 at 18:39:59 UTC