uvcc
libuv C++ bindings
uv::udp::io_info Struct Reference

Supplemental data passed as the last argument to io::on_read_t callback function called by recv_start(). More...

#include "handle-udp.hpp"

Public Attributes

const ::sockaddr * peer
 The address of the remote peer. Can be nullptr. The pointer is valid for the duration of the callback only. More...
 
unsigned int flags
 One or more or’ed uv_udp_flags constants. More...
 

Detailed Description

Supplemental data passed as the last argument to io::on_read_t callback function called by recv_start().

See also
libuv API documentation: uv_udp_recv_cb.

Definition at line 37 of file handle-udp.hpp.

Member Data Documentation

◆ peer

const ::sockaddr* uv::udp::io_info::peer

The address of the remote peer. Can be nullptr. The pointer is valid for the duration of the callback only.

Note
If the receive callback is called with zero number of bytes that have been received, then (peer == nullptr) indicates that there is nothing to read, and (peer != nullptr) indicates an empty UDP packet is received.

Definition at line 42 of file handle-udp.hpp.

◆ flags

unsigned int uv::udp::io_info::flags

One or more or’ed uv_udp_flags constants.

See also
libuv API documentation: uv_udp_recv_cb, uv_udp_flags.

Definition at line 46 of file handle-udp.hpp.


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