kwiberg@webrtc.org | 67186fe | 2015-03-09 22:21:53 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2015 The WebRTC Project Authors. All rights reserved. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license |
| 5 | * that can be found in the LICENSE file in the root of the source |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 | |
Steve Anton | 10542f2 | 2019-01-11 17:11:00 | [diff] [blame] | 11 | #include "rtc_base/async_packet_socket.h" |
Jonas Olsson | a4d8737 | 2019-07-05 17:08:33 | [diff] [blame] | 12 | |
kwiberg@webrtc.org | 67186fe | 2015-03-09 22:21:53 | [diff] [blame] | 13 | namespace rtc { |
| 14 | |
Qingsi Wang | 6e641e6 | 2018-04-12 03:14:17 | [diff] [blame] | 15 | PacketTimeUpdateParams::PacketTimeUpdateParams() = default; |
| 16 | |
| 17 | PacketTimeUpdateParams::PacketTimeUpdateParams( |
| 18 | const PacketTimeUpdateParams& other) = default; |
kwiberg@webrtc.org | 67186fe | 2015-03-09 22:21:53 | [diff] [blame] | 19 | |
| 20 | PacketTimeUpdateParams::~PacketTimeUpdateParams() = default; |
| 21 | |
Qingsi Wang | 6e641e6 | 2018-04-12 03:14:17 | [diff] [blame] | 22 | PacketOptions::PacketOptions() = default; |
| 23 | PacketOptions::PacketOptions(DiffServCodePoint dscp) : dscp(dscp) {} |
| 24 | PacketOptions::PacketOptions(const PacketOptions& other) = default; |
| 25 | PacketOptions::~PacketOptions() = default; |
kwiberg@webrtc.org | 67186fe | 2015-03-09 22:21:53 | [diff] [blame] | 26 | |
Qingsi Wang | 6e641e6 | 2018-04-12 03:14:17 | [diff] [blame] | 27 | AsyncPacketSocket::AsyncPacketSocket() = default; |
| 28 | |
| 29 | AsyncPacketSocket::~AsyncPacketSocket() = default; |
| 30 | |
| 31 | void CopySocketInformationToPacketInfo(size_t packet_size_bytes, |
| 32 | const AsyncPacketSocket& socket_from, |
Qingsi Wang | 4ea53b3 | 2018-04-17 01:22:31 | [diff] [blame] | 33 | bool is_connectionless, |
Qingsi Wang | 6e641e6 | 2018-04-12 03:14:17 | [diff] [blame] | 34 | rtc::PacketInfo* info) { |
| 35 | info->packet_size_bytes = packet_size_bytes; |
Sebastian Jansson | db5d7e4 | 2020-03-02 10:32:23 | [diff] [blame] | 36 | info->ip_overhead_bytes = socket_from.GetLocalAddress().ipaddr().overhead(); |
kwiberg@webrtc.org | 67186fe | 2015-03-09 22:21:53 | [diff] [blame] | 37 | } |
| 38 | |
Nico Weber | 22f9925 | 2019-02-20 15:13:16 | [diff] [blame] | 39 | } // namespace rtc |