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/SctpTransportInterface.h"
8#include "mc/external/webrtc/SctpTransportState.h"
9#include "mc/external/webrtc/scoped_refptr.h"
10
11// auto generated forward declare list
12// clang-format off
13namespace webrtc { class CopyOnWriteBuffer; }
14namespace webrtc { class DataChannelSink; }
15namespace webrtc { class DtlsTransport; }
16namespace webrtc { class DtlsTransportInterface; }
17namespace webrtc { class PriorityValue; }
18namespace webrtc { class RTCError; }
19namespace webrtc { class SctpTransportInformation; }
20namespace webrtc { class SctpTransportInternal; }
21namespace webrtc { class SctpTransportObserverInterface; }
22namespace webrtc { struct SctpOptions; }
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&);
42 SctpTransport(SctpTransport const&);
43 SctpTransport();
44
45public:
46 // virtual functions
47 // NOLINTBEGIN
48 virtual ::webrtc::scoped_refptr<::webrtc::DtlsTransportInterface> dtls_transport() const /*override*/;
49
50 virtual ::webrtc::SctpTransportInformation Information() const /*override*/;
51
52 virtual void RegisterObserver(::webrtc::SctpTransportObserverInterface* observer) /*override*/;
53
54 virtual void UnregisterObserver() /*override*/;
55
56 virtual ::webrtc::RTCError OpenChannel(int channel_id, ::webrtc::PriorityValue priority) /*override*/;
57
58 virtual ::webrtc::RTCError SendData(
59 int channel_id,
60 ::webrtc::SendDataParams const& params,
62 ) /*override*/;
63
64 virtual ::webrtc::RTCError CloseChannel(int channel_id) /*override*/;
65
66 virtual void SetDataSink(::webrtc::DataChannelSink* sink) /*override*/;
67
68 virtual bool IsReadyToSend() const /*override*/;
69
70 virtual uint64 buffered_amount(int channel_id) const /*override*/;
71
72 virtual uint64 buffered_amount_low_threshold(int channel_id) const /*override*/;
73
74 virtual void SetBufferedAmountLowThreshold(int channel_id, uint64 bytes) /*override*/;
75
76 virtual ~SctpTransport() /*override*/;
77 // NOLINTEND
78
79public:
80 // member functions
81 // NOLINTBEGIN
82 MCNAPI void Clear();
83
85 ::std::unique_ptr<::webrtc::SctpTransportInternal> internal,
87 );
88
89 MCNAPI void Start(::webrtc::SctpOptions const& options);
90
91 MCNAPI void UpdateInformation(::webrtc::SctpTransportState state);
92 // NOLINTEND
93
94public:
95 // constructor thunks
96 // NOLINTBEGIN
97 MCNAPI void* $ctor(
98 ::std::unique_ptr<::webrtc::SctpTransportInternal> internal,
100 );
101 // NOLINTEND
102
103public:
104 // destructor thunk
105 // NOLINTBEGIN
106 MCNAPI void $dtor();
107 // NOLINTEND
108
109public:
110 // virtual function thunks
111 // NOLINTBEGIN
112 MCNAPI ::webrtc::scoped_refptr<::webrtc::DtlsTransportInterface> $dtls_transport() const;
113
114 MCNAPI ::webrtc::SctpTransportInformation $Information() const;
115
117
118 MCNAPI void $UnregisterObserver();
119
120 MCNAPI ::webrtc::RTCError $OpenChannel(int channel_id, ::webrtc::PriorityValue priority);
121
122 MCNAPI ::webrtc::RTCError
124
125 MCNAPI ::webrtc::RTCError $CloseChannel(int channel_id);
126
128
129 MCNAPI bool $IsReadyToSend() const;
130
131 MCNAPI uint64 $buffered_amount(int channel_id) const;
132
133 MCNAPI uint64 $buffered_amount_low_threshold(int channel_id) const;
134
135 MCNAPI void $SetBufferedAmountLowThreshold(int channel_id, uint64 bytes);
136
137
138 // NOLINTEND
139
140public:
141 // vftables
142 // NOLINTBEGIN
143 MCNAPI static void** $vftableForSctpTransportInterface();
144
146 // NOLINTEND
147};
148
149} // namespace webrtc
Definition CopyOnWriteBuffer.h:11
Definition DataChannelSink.h:16
Definition DataChannelTransportInterface.h:16
Definition DtlsTransportInterface.h:18
Definition DtlsTransport.h:19
Definition PriorityValue.h:16
Definition RTCError.h:10
Definition SctpTransportInformation.h:16
Definition SctpTransportInterface.h:18
Definition SctpTransportInternal.h:18
Definition SctpTransportObserverInterface.h:12
MCAPI void UpdateInformation(::webrtc::SctpTransportState state)
MCAPI void $SetDataSink(::webrtc::DataChannelSink *sink)
MCAPI::webrtc::RTCError $OpenChannel(int channel_id, ::webrtc::PriorityValue priority)
MCAPI void * $ctor(::std::unique_ptr<::webrtc::SctpTransportInternal > internal, ::webrtc::scoped_refptr<::webrtc::DtlsTransport > dtls_transport)
MCAPI uint64 $buffered_amount(int channel_id) const
static MCAPI void ** $vftableForDataChannelTransportInterface()
MCAPI void $UnregisterObserver()
MCAPI void Start(::webrtc::SctpOptions const &options)
MCAPI void $SetBufferedAmountLowThreshold(int channel_id, uint64 bytes)
static MCAPI void ** $vftableForSctpTransportInterface()
MCAPI uint64 $buffered_amount_low_threshold(int channel_id) const
MCAPI::webrtc::SctpTransportInformation $Information() const
MCAPI::webrtc::RTCError $CloseChannel(int channel_id)
MCAPI SctpTransport(::std::unique_ptr<::webrtc::SctpTransportInternal > internal, ::webrtc::scoped_refptr<::webrtc::DtlsTransport > dtls_transport)
MCAPI void $RegisterObserver(::webrtc::SctpTransportObserverInterface *observer)
MCAPI ::webrtc::scoped_refptr<::webrtc::DtlsTransportInterface > $dtls_transport() const
MCAPI::webrtc::RTCError $SendData(int channel_id, ::webrtc::SendDataParams const &params, ::webrtc::CopyOnWriteBuffer const &buffer)
MCAPI bool $IsReadyToSend() const
Definition scoped_refptr.h:8
Definition buffer.h:5
Definition Alias.h:14
Definition SctpOptions.h:7
Definition SendDataParams.h:7