Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
roc::packet::UDP Struct Reference

UDP packet. More...

#include <udp.h>

Collaboration diagram for roc::packet::UDP:

Public Attributes

address::SocketAddr src_addr
 Source address. More...
 
address::SocketAddr dst_addr
 Destination address. More...
 
core::nanoseconds_t receive_timestamp
 Packet receive timestamp (RTS), nanoseconds since Unix epoch. More...
 
core::nanoseconds_t queue_timestamp
 Packet queue timestamp (QTS), nanoseconds since Unix epoch. More...
 
uv_udp_send_t request
 Sender request state. More...
 

Detailed Description

UDP packet.

Definition at line 26 of file udp.h.

Member Data Documentation

◆ dst_addr

address::SocketAddr roc::packet::UDP::dst_addr

Destination address.

Remarks
Address to which packet was / will be sent.

Definition at line 35 of file udp.h.

◆ queue_timestamp

core::nanoseconds_t roc::packet::UDP::queue_timestamp

Packet queue timestamp (QTS), nanoseconds since Unix epoch.

Remarks
It points to a moment when the packet was transferred to a sink-thread, that "consumes" this packet. The reason to have it separate is that this allows us to account additional jitter introduced by thread-switch time.

Definition at line 47 of file udp.h.

◆ receive_timestamp

core::nanoseconds_t roc::packet::UDP::receive_timestamp

Packet receive timestamp (RTS), nanoseconds since Unix epoch.

Remarks
It points to a moment when packets was grabbed by network thread.

Definition at line 40 of file udp.h.

◆ request

uv_udp_send_t roc::packet::UDP::request

Sender request state.

Remarks
Used by network thread.

Definition at line 52 of file udp.h.

◆ src_addr

address::SocketAddr roc::packet::UDP::src_addr

Source address.

Remarks
Address from which packet was / will be sent.

Definition at line 30 of file udp.h.


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