andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2012 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 | |
| 11 | #ifndef WEBRTC_VOICE_ENGINE_VOE_NETWORK_IMPL_H |
| 12 | #define WEBRTC_VOICE_ENGINE_VOE_NETWORK_IMPL_H |
| 13 | |
pbos@webrtc.org | 471ae72 | 2013-05-21 13:52:32 +0000 | [diff] [blame] | 14 | #include "webrtc/voice_engine/include/voe_network.h" |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 15 | |
pbos@webrtc.org | 471ae72 | 2013-05-21 13:52:32 +0000 | [diff] [blame] | 16 | #include "webrtc/voice_engine/shared_data.h" |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 17 | |
| 18 | |
| 19 | namespace webrtc |
| 20 | { |
| 21 | |
| 22 | class VoENetworkImpl: public VoENetwork |
| 23 | { |
| 24 | public: |
| 25 | virtual int RegisterExternalTransport(int channel, Transport& transport); |
| 26 | |
| 27 | virtual int DeRegisterExternalTransport(int channel); |
| 28 | |
| 29 | virtual int ReceivedRTPPacket(int channel, |
| 30 | const void* data, |
| 31 | unsigned int length); |
solenberg@webrtc.org | fec6b6e | 2014-03-24 10:38:25 +0000 | [diff] [blame] | 32 | virtual int ReceivedRTPPacket(int channel, |
| 33 | const void* data, |
| 34 | unsigned int length, |
| 35 | const PacketTime& packet_time); |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 36 | |
| 37 | virtual int ReceivedRTCPPacket(int channel, |
| 38 | const void* data, |
| 39 | unsigned int length); |
| 40 | |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 41 | protected: |
| 42 | VoENetworkImpl(voe::SharedData* shared); |
| 43 | virtual ~VoENetworkImpl(); |
| 44 | private: |
| 45 | voe::SharedData* _shared; |
| 46 | }; |
| 47 | |
pbos@webrtc.org | 3b89e10 | 2013-07-03 15:12:26 +0000 | [diff] [blame] | 48 | } // namespace webrtc |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 49 | |
| 50 | #endif // WEBRTC_VOICE_ENGINE_VOE_NETWORK_IMPL_H |