LeviLamina
Loading...
Searching...
No Matches
SctpTransportInternal.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7namespace webrtc { class CopyOnWriteBuffer; }
8namespace webrtc { class DataChannelSink; }
9namespace webrtc { class DtlsTransportInternal; }
10namespace webrtc { class PriorityValue; }
11namespace webrtc { class RTCError; }
12namespace webrtc { struct SctpOptions; }
13namespace webrtc { struct SendDataParams; }
14// clang-format on
15
16namespace webrtc {
17
19public:
20 // virtual functions
21 // NOLINTBEGIN
22 virtual ~SctpTransportInternal();
23
24 virtual void SetOnConnectedCallback(::std::function<void()> callback) = 0;
25
26 virtual void SetDataChannelSink(::webrtc::DataChannelSink* sink) = 0;
27
28 virtual void SetDtlsTransport(::webrtc::DtlsTransportInternal* transport) = 0;
29
30 virtual bool Start(::webrtc::SctpOptions const& options) = 0;
31
32 virtual bool Start(int local_sctp_port, int remote_sctp_port, int max_message_size);
33
34 virtual bool OpenStream(int sid, ::webrtc::PriorityValue priority) = 0;
35
36 virtual bool ResetStream(int sid) = 0;
37
38 virtual ::webrtc::RTCError
39 SendData(int sid, ::webrtc::SendDataParams const& params, ::webrtc::CopyOnWriteBuffer const& payload) = 0;
40
41 virtual bool ReadyToSendData() = 0;
42
43 virtual int max_message_size() const = 0;
44
45 virtual ::std::optional<int> max_outbound_streams() const = 0;
46
47 virtual ::std::optional<int> max_inbound_streams() const = 0;
48
49 virtual uint64 buffered_amount(int sid) const = 0;
50
51 virtual uint64 buffered_amount_low_threshold(int sid) const = 0;
52
53 virtual void SetBufferedAmountLowThreshold(int sid, uint64 bytes) = 0;
54
55 virtual void set_debug_name_for_testing(char const* debug_name) = 0;
56 // NOLINTEND
57
58public:
59 // destructor thunk
60 // NOLINTBEGIN
61 MCNAPI void $dtor();
62 // NOLINTEND
63
64public:
65 // virtual function thunks
66 // NOLINTBEGIN
67 MCNAPI bool $Start(int local_sctp_port, int remote_sctp_port, int max_message_size);
68
69
70 // NOLINTEND
71
72public:
73 // vftables
74 // NOLINTBEGIN
75 MCNAPI static void** $vftable();
76 // NOLINTEND
77};
78
79} // namespace webrtc
Definition CopyOnWriteBuffer.h:11
Definition DataChannelSink.h:16
Definition DtlsTransportInternal.h:22
Definition PriorityValue.h:16
Definition RTCError.h:10
Definition SctpTransportInternal.h:18
MCAPI bool $Start(int local_sctp_port, int remote_sctp_port, int max_message_size)
static MCAPI void ** $vftable()
Definition SctpOptions.h:7
Definition SendDataParams.h:7