blob: ee9b92ec3be87829c0724c2a8372c2e8d1b0b573 [file] [log] [blame]
niklase@google.com470e71d2011-07-07 08:21:25 +00001/*
tommi@webrtc.org851becd2012-04-04 14:57:19 +00002 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
niklase@google.com470e71d2011-07-07 08:21:25 +00003 *
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
11#ifndef WEBRTC_VOICE_ENGINE_VOE_NETWORK_IMPL_H
12#define WEBRTC_VOICE_ENGINE_VOE_NETWORK_IMPL_H
13
pbos@webrtc.org956aa7e2013-05-21 13:52:32 +000014#include "webrtc/voice_engine/include/voe_network.h"
niklase@google.com470e71d2011-07-07 08:21:25 +000015
pbos@webrtc.org956aa7e2013-05-21 13:52:32 +000016#include "webrtc/voice_engine/shared_data.h"
niklase@google.com470e71d2011-07-07 08:21:25 +000017
18
19namespace webrtc
20{
21
tommi@webrtc.orga990e122012-04-26 15:28:22 +000022class VoENetworkImpl: public VoENetwork
niklase@google.com470e71d2011-07-07 08:21:25 +000023{
24public:
kjellander@webrtc.org14665ff2015-03-04 12:58:35 +000025 int RegisterExternalTransport(int channel, Transport& transport) override;
niklase@google.com470e71d2011-07-07 08:21:25 +000026
kjellander@webrtc.org14665ff2015-03-04 12:58:35 +000027 int DeRegisterExternalTransport(int channel) override;
niklase@google.com470e71d2011-07-07 08:21:25 +000028
kjellander@webrtc.org14665ff2015-03-04 12:58:35 +000029 int ReceivedRTPPacket(int channel, const void* data, size_t length) override;
30 int ReceivedRTPPacket(int channel,
31 const void* data,
32 size_t length,
33 const PacketTime& packet_time) override;
niklase@google.com470e71d2011-07-07 08:21:25 +000034
kjellander@webrtc.org14665ff2015-03-04 12:58:35 +000035 int ReceivedRTCPPacket(int channel, const void* data, size_t length) override;
niklase@google.com470e71d2011-07-07 08:21:25 +000036
niklase@google.com470e71d2011-07-07 08:21:25 +000037protected:
tommi@webrtc.org851becd2012-04-04 14:57:19 +000038 VoENetworkImpl(voe::SharedData* shared);
niklase@google.com470e71d2011-07-07 08:21:25 +000039 virtual ~VoENetworkImpl();
tommi@webrtc.org851becd2012-04-04 14:57:19 +000040private:
41 voe::SharedData* _shared;
niklase@google.com470e71d2011-07-07 08:21:25 +000042};
43
pbos@webrtc.orgd900e8b2013-07-03 15:12:26 +000044} // namespace webrtc
niklase@google.com470e71d2011-07-07 08:21:25 +000045
46#endif // WEBRTC_VOICE_ENGINE_VOE_NETWORK_IMPL_H