LeviLamina
Loading...
Searching...
No Matches
PacketTransportInternal.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/external/absl/AnyInvocable.h"
7#include "mc/external/rtc/Socket.h"
8#include "mc/external/sigslot/has_slots.h"
9#include "mc/external/sigslot/single_threaded.h"
10
11// auto generated forward declare list
12// clang-format off
13namespace rtc { class ReceivedPacket; }
14namespace rtc { struct NetworkRoute; }
15namespace rtc { struct PacketOptions; }
16// clang-format on
17
18namespace rtc {
19
20class PacketTransportInternal : public ::sigslot::has_slots<::sigslot::single_threaded> {
21public:
22 // member variables
23 // NOLINTBEGIN
32 // NOLINTEND
33
34public:
35 // prevent constructor by default
38
39public:
40 // virtual functions
41 // NOLINTBEGIN
42 // vIndex: 1
43 virtual ::std::string const& transport_name() const = 0;
44
45 // vIndex: 2
46 virtual bool writable() const = 0;
47
48 // vIndex: 3
49 virtual bool receiving() const = 0;
50
51 // vIndex: 4
52 virtual int SendPacket(char const*, uint64, ::rtc::PacketOptions const&, int) = 0;
53
54 // vIndex: 5
55 virtual int SetOption(::rtc::Socket::Option, int) = 0;
56
57 // vIndex: 6
58 virtual bool GetOption(::rtc::Socket::Option opt, int* value);
59
60 // vIndex: 7
61 virtual int GetError() = 0;
62
63 // vIndex: 8
64 virtual ::std::optional<::rtc::NetworkRoute> network_route() const;
65
66 // vIndex: 0
67 virtual ~PacketTransportInternal() /*override*/;
68 // NOLINTEND
69
70public:
71 // member functions
72 // NOLINTBEGIN
73 MCNAPI void DeregisterReceivedPacketCallback(void* id);
74
75 MCNAPI void NotifyOnClose();
76
77 MCNAPI void NotifyPacketReceived(::rtc::ReceivedPacket const& packet);
78
80
82 void* id,
84 );
85
86 MCNAPI void SetOnCloseCallback(::absl::AnyInvocable<void() &&> callback);
87 // NOLINTEND
88
89public:
90 // constructor thunks
91 // NOLINTBEGIN
92 MCNAPI void* $ctor();
93 // NOLINTEND
94
95public:
96 // destructor thunk
97 // NOLINTBEGIN
98 MCNAPI void $dtor();
99 // NOLINTEND
100
101public:
102 // virtual function thunks
103 // NOLINTBEGIN
104 MCNAPI bool $GetOption(::rtc::Socket::Option opt, int* value);
105
106 MCNAPI ::std::optional<::rtc::NetworkRoute> $network_route() const;
107 // NOLINTEND
108
109public:
110 // vftables
111 // NOLINTBEGIN
112 MCNAPI static void** $vftable();
113 // NOLINTEND
114};
115
116} // namespace rtc
Definition AnyInvocable.h:8
Definition PacketTransportInternal.h:20
MCAPI void RegisterReceivedPacketCallback(void *id, ::absl::AnyInvocable< void(::rtc::PacketTransportInternal *, ::rtc::ReceivedPacket const &)> callback)
MCAPI void NotifyPacketReceived(::rtc::ReceivedPacket const &packet)
MCAPI void DeregisterReceivedPacketCallback(void *id)
static MCAPI void ** $vftable()
MCAPI ::std::optional<::rtc::NetworkRoute > $network_route() const
MCAPI void SetOnCloseCallback(::absl::AnyInvocable< void() && > callback)
MCAPI bool $GetOption(::rtc::Socket::Option opt, int *value)
Definition ReceivedPacket.h:16
Definition has_slots.h:8
Definition Alias.h:14
Definition PacketOptions.h:10