Struct UDPDataEvent

Synopsis

#include <src/uvw/udp.h>

struct UDPDataEvent

Description

UDPDataEvent event.

It will be emitted by UDPHandle according with its functionalities.

Methods

UDPDataEvent

Source

Lines 32-39 in src/uvw/udp.h.

struct UDPDataEvent {
    explicit UDPDataEvent(Addr sndr, std::unique_ptr<char[]> buf, std::size_t len, bool part) noexcept;

    std::unique_ptr<char[]> data; /*!< A bunch of data read on the stream. */
    std::size_t length;  /*!< The amount of data read on the stream. */
    Addr sender; /*!< A valid instance of Addr. */
    bool partial; /*!< True if the message was truncated, false otherwise. */
};





Add Discussion as Guest

Log in