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 cricket { class SctpTransportInternal; }
14namespace rtc { class CopyOnWriteBuffer; }
15namespace webrtc { class DataChannelSink; }
16namespace webrtc { class DtlsTransport; }
17namespace webrtc { class DtlsTransportInterface; }
18namespace webrtc { class RTCError; }
19namespace webrtc { class SctpTransportInformation; }
20namespace webrtc { class SctpTransportObserverInterface; }
21namespace webrtc { struct SendDataParams; }
22// clang-format on
23
24namespace webrtc {
25
27public:
28 // member variables
29 // NOLINTBEGIN
35 // NOLINTEND
36
37public:
38 // prevent constructor by default
39 SctpTransport& operator=(SctpTransport const&);
40 SctpTransport(SctpTransport const&);
41 SctpTransport();
42
43public:
44 // virtual functions
45 // NOLINTBEGIN
46 virtual ::webrtc::scoped_refptr<::webrtc::DtlsTransportInterface> dtls_transport() const /*override*/;
47
48 virtual ::webrtc::SctpTransportInformation Information() const /*override*/;
49
50 virtual void RegisterObserver(::webrtc::SctpTransportObserverInterface* observer) /*override*/;
51
52 virtual void UnregisterObserver() /*override*/;
53
54 virtual ::webrtc::RTCError OpenChannel(int channel_id) /*override*/;
55
56 virtual ::webrtc::RTCError SendData(
57 int channel_id,
58 ::webrtc::SendDataParams const& params,
60 ) /*override*/;
61
62 virtual ::webrtc::RTCError CloseChannel(int channel_id) /*override*/;
63
64 virtual void SetDataSink(::webrtc::DataChannelSink* sink) /*override*/;
65
66 virtual bool IsReadyToSend() const /*override*/;
67
68 virtual uint64 buffered_amount(int channel_id) const /*override*/;
69
70 virtual uint64 buffered_amount_low_threshold(int channel_id) const /*override*/;
71
72 virtual void SetBufferedAmountLowThreshold(int channel_id, uint64 bytes) /*override*/;
73
74 virtual ~SctpTransport() /*override*/;
75 // NOLINTEND
76
77public:
78 // member functions
79 // NOLINTBEGIN
80 MCNAPI void Clear();
81
83 ::std::unique_ptr<::cricket::SctpTransportInternal> internal,
85 );
86
87 MCNAPI void Start(int local_port, int remote_port, int max_message_size);
88
89 MCNAPI void UpdateInformation(::webrtc::SctpTransportState state);
90 // NOLINTEND
91
92public:
93 // constructor thunks
94 // NOLINTBEGIN
95 MCNAPI void* $ctor(
96 ::std::unique_ptr<::cricket::SctpTransportInternal> internal,
98 );
99 // NOLINTEND
100
101public:
102 // destructor thunk
103 // NOLINTBEGIN
104 MCNAPI void $dtor();
105 // NOLINTEND
106
107public:
108 // virtual function thunks
109 // NOLINTBEGIN
110 MCNAPI ::webrtc::scoped_refptr<::webrtc::DtlsTransportInterface> $dtls_transport() const;
111
112 MCNAPI ::webrtc::SctpTransportInformation $Information() const;
113
115
116 MCNAPI void $UnregisterObserver();
117
118 MCNAPI ::webrtc::RTCError $OpenChannel(int channel_id);
119
120 MCNAPI ::webrtc::RTCError
122
123 MCNAPI ::webrtc::RTCError $CloseChannel(int channel_id);
124
126
127 MCNAPI bool $IsReadyToSend() const;
128
129 MCNAPI uint64 $buffered_amount(int channel_id) const;
130
131 MCNAPI uint64 $buffered_amount_low_threshold(int channel_id) const;
132
133 MCNAPI void $SetBufferedAmountLowThreshold(int channel_id, uint64 bytes);
134
135
136 // NOLINTEND
137
138public:
139 // vftables
140 // NOLINTBEGIN
141 MCNAPI static void** $vftableForSctpTransportInterface();
142
144 // NOLINTEND
145};
146
147} // namespace webrtc
Definition SctpTransportInternal.h:16
Definition CopyOnWriteBuffer.h:11
Definition DataChannelSink.h:16
Definition DataChannelTransportInterface.h:15
Definition DtlsTransportInterface.h:18
Definition DtlsTransport.h:19
Definition RTCError.h:10
Definition SctpTransportInformation.h:16
Definition SctpTransportInterface.h:18
Definition SctpTransportObserverInterface.h:12
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 $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