LeviLamina
Loading...
Searching...
No Matches
SctpTransport.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/external/webrtc/DataChannelTransportInterface.h"
7#include "mc/external/webrtc/DtlsTransportState.h"
8#include "mc/external/webrtc/SctpTransportInterface.h"
9#include "mc/external/webrtc/SctpTransportState.h"
10#include "mc/external/webrtc/scoped_refptr.h"
11
12// auto generated forward declare list
13// clang-format off
14namespace cricket { class DtlsTransportInternal; }
15namespace cricket { class SctpTransportInternal; }
16namespace rtc { class CopyOnWriteBuffer; }
17namespace webrtc { class DataChannelSink; }
18namespace webrtc { class DtlsTransport; }
19namespace webrtc { class DtlsTransportInterface; }
20namespace webrtc { class RTCError; }
21namespace webrtc { class SctpTransportInformation; }
22namespace webrtc { class SctpTransportObserverInterface; }
23namespace webrtc { struct SendDataParams; }
24// clang-format on
25
26namespace webrtc {
27
29public:
30 // member variables
31 // NOLINTBEGIN
37 // NOLINTEND
38
39public:
40 // prevent constructor by default
41 SctpTransport& operator=(SctpTransport const&);
44
45public:
46 // virtual functions
47 // NOLINTBEGIN
48 // vIndex: 3
49 virtual ::webrtc::scoped_refptr<::webrtc::DtlsTransportInterface> dtls_transport() const /*override*/;
50
51 // vIndex: 4
52 virtual ::webrtc::SctpTransportInformation Information() const /*override*/;
53
54 // vIndex: 5
55 virtual void RegisterObserver(::webrtc::SctpTransportObserverInterface* observer) /*override*/;
56
57 // vIndex: 6
58 virtual void UnregisterObserver() /*override*/;
59
60 // vIndex: 1
61 virtual ::webrtc::RTCError OpenChannel(int channel_id) /*override*/;
62
63 // vIndex: 2
64 virtual ::webrtc::RTCError SendData(
65 int channel_id,
66 ::webrtc::SendDataParams const& params,
68 ) /*override*/;
69
70 // vIndex: 3
71 virtual ::webrtc::RTCError CloseChannel(int channel_id) /*override*/;
72
73 // vIndex: 4
74 virtual void SetDataSink(::webrtc::DataChannelSink* sink) /*override*/;
75
76 // vIndex: 5
77 virtual bool IsReadyToSend() const /*override*/;
78
79 // vIndex: 6
80 virtual uint64 buffered_amount(int channel_id) const /*override*/;
81
82 // vIndex: 7
83 virtual uint64 buffered_amount_low_threshold(int channel_id) const /*override*/;
84
85 // vIndex: 8
86 virtual void SetBufferedAmountLowThreshold(int channel_id, uint64 bytes) /*override*/;
87
88 // vIndex: 0
89 virtual ~SctpTransport() /*override*/;
90 // NOLINTEND
91
92public:
93 // member functions
94 // NOLINTBEGIN
95 MCNAPI void Clear();
96
98
99 MCNAPI void OnDtlsStateChange(::cricket::DtlsTransportInternal* transport, ::webrtc::DtlsTransportState state);
100
102 ::std::unique_ptr<::cricket::SctpTransportInternal> internal,
104 );
105
106 MCNAPI void Start(int local_port, int remote_port, int max_message_size);
107
108 MCNAPI void UpdateInformation(::webrtc::SctpTransportState state);
109 // NOLINTEND
110
111public:
112 // constructor thunks
113 // NOLINTBEGIN
114 MCNAPI void* $ctor(
115 ::std::unique_ptr<::cricket::SctpTransportInternal> internal,
117 );
118 // NOLINTEND
119
120public:
121 // destructor thunk
122 // NOLINTBEGIN
123 MCNAPI void $dtor();
124 // NOLINTEND
125
126public:
127 // virtual function thunks
128 // NOLINTBEGIN
129 MCNAPI ::webrtc::scoped_refptr<::webrtc::DtlsTransportInterface> $dtls_transport() const;
130
131 MCNAPI ::webrtc::SctpTransportInformation $Information() const;
132
134
135 MCNAPI void $UnregisterObserver();
136
137 MCNAPI ::webrtc::RTCError $OpenChannel(int channel_id);
138
139 MCNAPI ::webrtc::RTCError
141
142 MCNAPI ::webrtc::RTCError $CloseChannel(int channel_id);
143
145
146 MCNAPI bool $IsReadyToSend() const;
147
148 MCNAPI uint64 $buffered_amount(int channel_id) const;
149
150 MCNAPI uint64 $buffered_amount_low_threshold(int channel_id) const;
151
152 MCNAPI void $SetBufferedAmountLowThreshold(int channel_id, uint64 bytes);
153 // NOLINTEND
154
155public:
156 // vftables
157 // NOLINTBEGIN
158 MCNAPI static void** $vftableForSctpTransportInterface();
159
161 // NOLINTEND
162};
163
164} // namespace webrtc
Definition DtlsTransportInternal.h:21
Definition CopyOnWriteBuffer.h:11
Definition DataChannelSink.h:16
Definition DataChannelTransportInterface.h:15
Definition SctpTransportInterface.h:18
Definition SctpTransportObserverInterface.h:12
Definition SctpTransport.h:28
MCAPI void UpdateInformation(::webrtc::SctpTransportState state)
MCAPI void $SetDataSink(::webrtc::DataChannelSink *sink)
MCAPI uint64 $buffered_amount(int channel_id) const
MCAPI void Start(int local_port, int remote_port, int max_message_size)
static MCAPI void ** $vftableForDataChannelTransportInterface()
MCAPI void OnAssociationChangeCommunicationUp()
MCAPI void OnDtlsStateChange(::cricket::DtlsTransportInternal *transport, ::webrtc::DtlsTransportState state)
MCAPI void $UnregisterObserver()
MCAPI void $SetBufferedAmountLowThreshold(int channel_id, uint64 bytes)
static MCAPI void ** $vftableForSctpTransportInterface()
MCAPI uint64 $buffered_amount_low_threshold(int channel_id) const
MCAPI::webrtc::RTCError $OpenChannel(int channel_id)
MCAPI::webrtc::SctpTransportInformation $Information() const
MCAPI::webrtc::RTCError $CloseChannel(int channel_id)
MCAPI void * $ctor(::std::unique_ptr<::cricket::SctpTransportInternal > internal, ::webrtc::scoped_refptr<::webrtc::DtlsTransport > dtls_transport)
MCAPI void $RegisterObserver(::webrtc::SctpTransportObserverInterface *observer)
MCAPI::webrtc::RTCError $SendData(int channel_id, ::webrtc::SendDataParams const &params, ::rtc::CopyOnWriteBuffer const &buffer)
MCAPI ::webrtc::scoped_refptr<::webrtc::DtlsTransportInterface > $dtls_transport() const
MCAPI bool $IsReadyToSend() const
MCAPI SctpTransport(::std::unique_ptr<::cricket::SctpTransportInternal > internal, ::webrtc::scoped_refptr<::webrtc::DtlsTransport > dtls_transport)
Definition scoped_refptr.h:8
Definition buffer.h:5
Definition Alias.h:14
Definition SendDataParams.h:7