Skip to content
LeviLamina

API Reference

On this page

Loading...
Searching...
No Matches
SrtpSession.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/external/webrtc/BufferT.h"
7
8// auto generated forward declare list
9// clang-format off
11namespace webrtc { class CopyOnWriteBuffer; }
12namespace webrtc { class FieldTrialsView; }
13// clang-format on
14
15namespace webrtc {
16
17class SrtpSession {
18public:
19 // member variables
20 // NOLINTBEGIN
31 // NOLINTEND
32
33public:
34 // prevent constructor by default
35 SrtpSession& operator=(SrtpSession const&);
36 SrtpSession(SrtpSession const&);
37 SrtpSession();
38
39public:
40 // member functions
41 // NOLINTBEGIN
42 MCNAPI bool DoSetKey(
43 int type,
44 int crypto_suite,
46 ::std::vector<int> const& extension_ids
47 );
48
49 MCNAPI void DumpPacket(::webrtc::CopyOnWriteBuffer const& buffer, bool outbound);
50
51 MCNAPI void EnableExternalAuth();
52
53 MCNAPI int GetSrtpOverhead() const;
54
56
58
59 MCNAPI bool RemoveSsrcFromSession(uint ssrc);
60
61 MCNAPI bool
62 SetKey(int type, int crypto_suite, ::webrtc::BufferT<uchar, 1> const& key, ::std::vector<int> const& extension_ids);
63
64 MCNAPI bool
65 SetReceive(int crypto_suite, ::webrtc::BufferT<uchar, 1> const& key, ::std::vector<int> const& extension_ids);
66
67 MCNAPI bool
68 SetSend(int crypto_suite, ::webrtc::BufferT<uchar, 1> const& key, ::std::vector<int> const& extension_ids);
69
70 MCNAPI explicit SrtpSession(::webrtc::FieldTrialsView const& field_trials);
71
73
75
76 MCNAPI bool
77 UpdateReceive(int crypto_suite, ::webrtc::BufferT<uchar, 1> const& key, ::std::vector<int> const& extension_ids);
78
79 MCNAPI bool
80 UpdateSend(int crypto_suite, ::webrtc::BufferT<uchar, 1> const& key, ::std::vector<int> const& extension_ids);
81
82 MCNAPI ~SrtpSession();
83 // NOLINTEND
84
85public:
86 // static functions
87 // NOLINTBEGIN
88 MCNAPI static void HandleEventThunk(::srtp_event_data_t* ev);
89 // NOLINTEND
90
91public:
92 // constructor thunks
93 // NOLINTBEGIN
94 MCNAPI void* $ctor(::webrtc::FieldTrialsView const& field_trials);
95 // NOLINTEND
96
97public:
98 // destructor thunk
99 // NOLINTBEGIN
100 MCNAPI void $dtor();
101 // NOLINTEND
102};
103
104} // namespace webrtc
Definition BufferT.h:8
Definition CopyOnWriteBuffer.h:11
Definition FieldTrialsView.h:7
MCAPI void DumpPacket(::webrtc::CopyOnWriteBuffer const &buffer, bool outbound)
MCAPI bool SetReceive(int crypto_suite, ::webrtc::BufferT< uchar, 1 > const &key, ::std::vector< int > const &extension_ids)
MCAPI void * $ctor(::webrtc::FieldTrialsView const &field_trials)
MCAPI bool UnprotectRtcp(::webrtc::CopyOnWriteBuffer &buffer)
MCAPI bool RemoveSsrcFromSession(uint ssrc)
static MCAPI void HandleEventThunk(::srtp_event_data_t *ev)
MCAPI int GetSrtpOverhead() const
MCAPI bool UnprotectRtp(::webrtc::CopyOnWriteBuffer &buffer)
MCAPI void EnableExternalAuth()
MCAPI bool ProtectRtp(::webrtc::CopyOnWriteBuffer &buffer)
MCAPI void $dtor()
MCAPI SrtpSession(::webrtc::FieldTrialsView const &field_trials)
MCAPI bool DoSetKey(int type, int crypto_suite, ::webrtc::BufferT< uchar, 1 > const &key, ::std::vector< int > const &extension_ids)
MCAPI bool UpdateReceive(int crypto_suite, ::webrtc::BufferT< uchar, 1 > const &key, ::std::vector< int > const &extension_ids)
MCAPI bool SetSend(int crypto_suite, ::webrtc::BufferT< uchar, 1 > const &key, ::std::vector< int > const &extension_ids)
MCAPI bool UpdateSend(int crypto_suite, ::webrtc::BufferT< uchar, 1 > const &key, ::std::vector< int > const &extension_ids)
MCAPI bool ProtectRtcp(::webrtc::CopyOnWriteBuffer &buffer)
MCAPI bool SetKey(int type, int crypto_suite, ::webrtc::BufferT< uchar, 1 > const &key, ::std::vector< int > const &extension_ids)
Definition buffer.h:5
Definition Alias.h:14
Definition srtp_event_data_t.h:5