LeviLamina
Loading...
Searching...
No Matches
PhysicalSocket.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/external/rtc/EcnMarking.h"
7#include "mc/external/rtc/Socket.h"
8#include "mc/external/sigslot/has_slots.h"
9
10// auto generated forward declare list
11// clang-format off
12namespace rtc { class PhysicalSocketServer; }
13namespace rtc { class SocketAddress; }
14namespace sigslot { class single_threaded; }
15namespace webrtc { class AsyncDnsResolverResult; }
16// clang-format on
17
18namespace rtc {
19
20class PhysicalSocket : public ::rtc::Socket, public ::sigslot::has_slots<::sigslot::single_threaded> {
21public:
22 // member variables
23 // NOLINTBEGIN
36 // NOLINTEND
37
38public:
39 // prevent constructor by default
40 PhysicalSocket& operator=(PhysicalSocket const&);
43
44public:
45 // virtual functions
46 // NOLINTBEGIN
47 // vIndex: 0
48 virtual ~PhysicalSocket() /*override*/ = default;
49
50 // vIndex: 18
51 virtual bool Create(int, int);
52
53 // vIndex: 1
54 virtual ::rtc::SocketAddress GetLocalAddress() const /*override*/;
55
56 // vIndex: 2
57 virtual ::rtc::SocketAddress GetRemoteAddress() const /*override*/;
58
59 // vIndex: 3
60 virtual int Bind(::rtc::SocketAddress const&) /*override*/;
61
62 // vIndex: 4
63 virtual int Connect(::rtc::SocketAddress const&) /*override*/;
64
65 // vIndex: 13
66 virtual int GetError() const /*override*/;
67
68 // vIndex: 14
69 virtual void SetError(int) /*override*/;
70
71 // vIndex: 15
72 virtual ::rtc::Socket::ConnState GetState() const /*override*/;
73
74 // vIndex: 16
75 virtual int GetOption(::rtc::Socket::Option, int*) /*override*/;
76
77 // vIndex: 17
78 virtual int SetOption(::rtc::Socket::Option, int) /*override*/;
79
80 // vIndex: 5
81 virtual int Send(void const*, uint64) /*override*/;
82
83 // vIndex: 6
84 virtual int SendTo(void const*, uint64, ::rtc::SocketAddress const&) /*override*/;
85
86 // vIndex: 7
87 virtual int Recv(void*, uint64, int64*) /*override*/;
88
89 // vIndex: 9
90 virtual int RecvFrom(void* pv, uint64 cb, ::rtc::SocketAddress* paddr, int64* timestamp) /*override*/;
91
92 // vIndex: 8
93 virtual int RecvFrom(::rtc::Socket::ReceiveBuffer&) /*override*/;
94
95 // vIndex: 10
96 virtual int Listen(int) /*override*/;
97
98 // vIndex: 11
99 virtual ::rtc::Socket* Accept(::rtc::SocketAddress*) /*override*/;
100
101 // vIndex: 12
102 virtual int Close() /*override*/;
103
104 // vIndex: 19
105 virtual uint64 DoAccept(uint64, ::sockaddr*, int*);
106
107 // vIndex: 20
108 virtual int DoSend(uint64, char const*, int, int);
109
110 // vIndex: 21
111 virtual int DoSendTo(uint64, char const*, int, int, ::sockaddr const*, int);
112
113 // vIndex: 22
114 virtual void SetEnabledEvents(uchar);
115
116 // vIndex: 23
117 virtual void EnableEvents(uchar);
118
119 // vIndex: 24
120 virtual void DisableEvents(uchar);
121 // NOLINTEND
122
123public:
124 // member functions
125 // NOLINTBEGIN
126 MCAPI int DoConnect(::rtc::SocketAddress const&);
127
128 MCAPI int DoReadFromSocket(void*, uint64, ::rtc::SocketAddress*, int64*, ::rtc::EcnMarking*);
129
130 MCAPI void OnResolveResult(::webrtc::AsyncDnsResolverResult const&);
131
133
134 MCAPI int SetOption(::rtc::Socket::Option, void const*, uint64);
135
136 MCAPI int TranslateOption(::rtc::Socket::Option, int*, int*);
137
138 MCAPI void UpdateLastError();
139 // NOLINTEND
140
141public:
142 // constructor thunks
143 // NOLINTBEGIN
144 MCAPI void* $ctor(::rtc::PhysicalSocketServer*, uint64);
145 // NOLINTEND
146
147public:
148 // destructor thunk
149 // NOLINTBEGIN
150
151 // NOLINTEND
152
153public:
154 // virtual function thunks
155 // NOLINTBEGIN
156
157 // NOLINTEND
158
159public:
160 // vftables
161 // NOLINTBEGIN
162 MCAPI static void** $vftableForSocket();
163
164 MCAPI static void** $vftableForHasSlots();
165 // NOLINTEND
166};
167
168} // namespace rtc
Definition PhysicalSocketServer.h:17
Definition PhysicalSocket.h:20
Definition SocketAddress.h:12
Definition Socket.h:12
Definition has_slots.h:8
Definition AsyncDnsResolverResult.h:12
Definition Alias.h:14
Definition Socket.h:20