blob: da79f443bc9955d9226e640a51fa7c13d34dceac [file] [log] [blame]
niklase@google.com470e71d2011-07-07 08:21:25 +00001/*
mflodman@webrtc.org9ba151b2012-06-21 10:02:13 +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
mflodman@webrtc.orge06ca3c2012-06-29 13:20:14 +000011#ifndef WEBRTC_VIDEO_ENGINE_VIE_NETWORK_IMPL_H_
12#define WEBRTC_VIDEO_ENGINE_VIE_NETWORK_IMPL_H_
niklase@google.com470e71d2011-07-07 08:21:25 +000013
pwestin@webrtc.org82dcc9f2013-04-02 20:37:14 +000014#include "webrtc/typedefs.h"
15#include "webrtc/video_engine/include/vie_network.h"
16#include "webrtc/video_engine/vie_ref_count.h"
niklase@google.com470e71d2011-07-07 08:21:25 +000017
mflodman@webrtc.org1bdf1df2011-12-20 11:57:47 +000018namespace webrtc {
niklase@google.com470e71d2011-07-07 08:21:25 +000019
mflodman@webrtc.orgb11424b2012-01-25 13:42:03 +000020class ViESharedData;
21
mflodman@webrtc.org1bdf1df2011-12-20 11:57:47 +000022class ViENetworkImpl
mflodman@webrtc.orgb11424b2012-01-25 13:42:03 +000023 : public ViENetwork,
mflodman@webrtc.org1bdf1df2011-12-20 11:57:47 +000024 public ViERefCount {
25 public:
26 // Implements ViENetwork.
27 virtual int Release();
stefan@webrtc.orgbfacda62013-03-27 16:36:01 +000028 virtual void SetNetworkTransmissionState(const int video_channel,
29 const bool is_transmitting);
mflodman@webrtc.org1bdf1df2011-12-20 11:57:47 +000030 virtual int RegisterSendTransport(const int video_channel,
31 Transport& transport);
32 virtual int DeregisterSendTransport(const int video_channel);
33 virtual int ReceivedRTPPacket(const int video_channel,
34 const void* data,
35 const int length);
36 virtual int ReceivedRTCPPacket(const int video_channel,
37 const void* data,
38 const int length);
mflodman@webrtc.org1bdf1df2011-12-20 11:57:47 +000039 virtual int SetMTU(int video_channel, unsigned int mtu);
40 virtual int SetPacketTimeoutNotification(const int video_channel,
41 bool enable,
42 int timeout_seconds);
43 virtual int RegisterObserver(const int video_channel,
44 ViENetworkObserver& observer);
45 virtual int DeregisterObserver(const int video_channel);
46 virtual int SetPeriodicDeadOrAliveStatus(
47 const int video_channel,
48 const bool enable,
49 const unsigned int sample_time_seconds);
niklase@google.com470e71d2011-07-07 08:21:25 +000050
mflodman@webrtc.org1bdf1df2011-12-20 11:57:47 +000051 protected:
mflodman@webrtc.org9ba151b2012-06-21 10:02:13 +000052 explicit ViENetworkImpl(ViESharedData* shared_data);
mflodman@webrtc.org1bdf1df2011-12-20 11:57:47 +000053 virtual ~ViENetworkImpl();
mflodman@webrtc.orgb11424b2012-01-25 13:42:03 +000054
55 private:
56 ViESharedData* shared_data_;
niklase@google.com470e71d2011-07-07 08:21:25 +000057};
mflodman@webrtc.org1bdf1df2011-12-20 11:57:47 +000058
59} // namespace webrtc
60
mflodman@webrtc.orge06ca3c2012-06-29 13:20:14 +000061#endif // WEBRTC_VIDEO_ENGINE_VIE_NETWORK_IMPL_H_