File tree Expand file tree Collapse file tree 4 files changed +17
-9
lines changed
internal_modules/roc_packet Expand file tree Collapse file tree 4 files changed +17
-9
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ status::StatusCode Router::write(const PacketPtr& packet) {
56
56
if (Route* route = find_route_ (packet->flags ())) {
57
57
if (allow_route_ (*route, *packet)) {
58
58
if (packet->udp ()) {
59
- packet->udp ()->queue_ts = core::timestamp (core::ClockUnix);
59
+ packet->udp ()->queue_timestamp = core::timestamp (core::ClockUnix);
60
60
}
61
61
62
62
return route->writer ->write (packet);
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ namespace packet {
14
14
15
15
UDP::UDP ()
16
16
: receive_timestamp(0 )
17
- , queue_ts (0 ) {
17
+ , queue_timestamp (0 ) {
18
18
memset (&request, 0 , sizeof (request));
19
19
}
20
20
Original file line number Diff line number Diff line change @@ -25,22 +25,30 @@ namespace packet {
25
25
// ! UDP packet.
26
26
struct UDP {
27
27
// ! Source address.
28
+ // ! @remarks
29
+ // ! Address from which packet was / will be sent.
28
30
address::SocketAddr src_addr;
29
31
30
32
// ! Destination address.
33
+ // ! @remarks
34
+ // ! Address to which packet was / will be sent.
31
35
address::SocketAddr dst_addr;
32
36
33
37
// ! Packet receive timestamp (RTS), nanoseconds since Unix epoch.
38
+ // ! @remarks
39
+ // ! It points to a moment when packets was grabbed by network thread.
34
40
core::nanoseconds_t receive_timestamp;
35
41
36
- // ! Timestamp in ns since unix-epoch. It points to a moment when
37
- // ! the packet was transferred to a sink-thread, that "consumes"
38
- // ! this packet. The reason to have it separate is that this
39
- // ! allows us to account additional jitter introduced by
40
- // ! thread-switch time.
41
- core::nanoseconds_t queue_ts ;
42
+ // ! Packet queue timestamp (QTS), nanoseconds since Unix epoch.
43
+ // ! @remarks
44
+ // ! It points to a moment when the packet was transferred to a sink-thread,
45
+ // ! that "consumes" this packet. The reason to have it separate is that this
46
+ // ! allows us to account additional jitter introduced by thread-switch time.
47
+ core::nanoseconds_t queue_timestamp ;
42
48
43
49
// ! Sender request state.
50
+ // ! @remarks
51
+ // ! Used by network thread.
44
52
uv_udp_send_t request;
45
53
46
54
UDP ();
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ packet::PacketPtr new_packet(packet::seqnum_t sn) {
35
35
packet->add_flags (packet::Packet::FlagRTP | packet::Packet::FlagUDP);
36
36
packet->rtp ()->payload_type = PayloadType_L16_Stereo;
37
37
packet->rtp ()->seqnum = sn;
38
- packet->udp ()->queue_ts = 666 ;
38
+ packet->udp ()->queue_timestamp = 666 ;
39
39
40
40
return packet;
41
41
}
You can’t perform that action at this time.
0 commit comments