niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 1 | /* |
tommi@webrtc.org | 851becd | 2012-04-04 14:57:19 +0000 | [diff] [blame] | 2 | * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 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 | 956aa7e | 2013-05-21 13:52:32 +0000 | [diff] [blame^] | 14 | #include "webrtc/voice_engine/include/voe_network.h" |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 15 | |
pbos@webrtc.org | 956aa7e | 2013-05-21 13:52:32 +0000 | [diff] [blame^] | 16 | #include "webrtc/voice_engine/shared_data.h" |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 17 | |
| 18 | |
| 19 | namespace webrtc |
| 20 | { |
| 21 | |
tommi@webrtc.org | a990e12 | 2012-04-26 15:28:22 +0000 | [diff] [blame] | 22 | class VoENetworkImpl: public VoENetwork |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 23 | { |
| 24 | public: |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 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); |
| 32 | |
| 33 | virtual int ReceivedRTCPPacket(int channel, |
| 34 | const void* data, |
| 35 | unsigned int length); |
| 36 | |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 37 | virtual int SetPacketTimeoutNotification(int channel, |
| 38 | bool enable, |
| 39 | int timeoutSeconds = 2); |
| 40 | |
| 41 | virtual int GetPacketTimeoutNotification(int channel, |
| 42 | bool& enabled, |
| 43 | int& timeoutSeconds); |
| 44 | |
| 45 | virtual int RegisterDeadOrAliveObserver(int channel, |
| 46 | VoEConnectionObserver& observer); |
| 47 | |
| 48 | virtual int DeRegisterDeadOrAliveObserver(int channel); |
| 49 | |
| 50 | virtual int SetPeriodicDeadOrAliveStatus(int channel, |
| 51 | bool enable, |
| 52 | int sampleTimeSeconds = 2); |
| 53 | |
| 54 | virtual int GetPeriodicDeadOrAliveStatus(int channel, |
| 55 | bool& enabled, |
| 56 | int& sampleTimeSeconds); |
| 57 | |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 58 | protected: |
tommi@webrtc.org | 851becd | 2012-04-04 14:57:19 +0000 | [diff] [blame] | 59 | VoENetworkImpl(voe::SharedData* shared); |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 60 | virtual ~VoENetworkImpl(); |
tommi@webrtc.org | 851becd | 2012-04-04 14:57:19 +0000 | [diff] [blame] | 61 | private: |
| 62 | voe::SharedData* _shared; |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 63 | }; |
| 64 | |
| 65 | } // namespace webrtc |
| 66 | |
| 67 | #endif // WEBRTC_VOICE_ENGINE_VOE_NETWORK_IMPL_H |