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#include "mc/external/sigslot/single_threaded.h"
10
11// auto generated forward declare list
12// clang-format off
13namespace rtc { class PhysicalSocketServer; }
14namespace rtc { class SocketAddress; }
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*/;
49
50 // vIndex: 18
51 virtual bool Create(int family, int type);
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& bind_addr) /*override*/;
61
62 // vIndex: 4
63 virtual int Connect(::rtc::SocketAddress const& addr) /*override*/;
64
65 // vIndex: 13
66 virtual int GetError() const /*override*/;
67
68 // vIndex: 14
69 virtual void SetError(int error) /*override*/;
70
71 // vIndex: 15
72 virtual ::rtc::Socket::ConnState GetState() const /*override*/;
73
74 // vIndex: 16
75 virtual int GetOption(::rtc::Socket::Option opt, int* value) /*override*/;
76
77 // vIndex: 17
78 virtual int SetOption(::rtc::Socket::Option opt, int value) /*override*/;
79
80 // vIndex: 5
81 virtual int Send(void const* pv, uint64 cb) /*override*/;
82
83 // vIndex: 6
84 virtual int SendTo(void const* buffer, uint64 length, ::rtc::SocketAddress const& addr) /*override*/;
85
86 // vIndex: 7
87 virtual int Recv(void* buffer, uint64 length, int64* timestamp) /*override*/;
88
89 // vIndex: 9
90 virtual int RecvFrom(void* buffer, uint64 length, ::rtc::SocketAddress* out_addr, int64* timestamp) /*override*/;
91
92 // vIndex: 8
93 virtual int RecvFrom(::rtc::Socket::ReceiveBuffer& buffer) /*override*/;
94
95 // vIndex: 10
96 virtual int Listen(int backlog) /*override*/;
97
98 // vIndex: 11
99 virtual ::rtc::Socket* Accept(::rtc::SocketAddress* out_addr) /*override*/;
100
101 // vIndex: 12
102 virtual int Close() /*override*/;
103
104 // vIndex: 19
105 virtual uint64 DoAccept(uint64 socket, ::sockaddr* addr, int* addrlen);
106
107 // vIndex: 20
108 virtual int DoSend(uint64 socket, char const* buf, int len, int flags);
109
110 // vIndex: 21
111 virtual int DoSendTo(uint64 socket, char const* buf, int len, int flags, ::sockaddr const* dest_addr, int addrlen);
112
113 // vIndex: 22
114 virtual void SetEnabledEvents(uchar events);
115
116 // vIndex: 23
117 virtual void EnableEvents(uchar events);
118
119 // vIndex: 24
120 virtual void DisableEvents(uchar events);
121 // NOLINTEND
122
123public:
124 // member functions
125 // NOLINTBEGIN
126 MCNAPI int DoConnect(::rtc::SocketAddress const& connect_addr);
127
129 void* buffer,
130 uint64 length,
131 ::rtc::SocketAddress* out_addr,
132 int64* timestamp,
133 ::rtc::EcnMarking* ecn
134 );
135
137
139
140 MCNAPI int SetOption(::rtc::Socket::Option opt, void const* value, uint64 size);
141
142 MCNAPI int TranslateOption(::rtc::Socket::Option opt, int* slevel, int* sopt);
143
144 MCNAPI void UpdateLastError();
145 // NOLINTEND
146
147public:
148 // constructor thunks
149 // NOLINTBEGIN
150 MCNAPI void* $ctor(::rtc::PhysicalSocketServer* ss, uint64 s);
151 // NOLINTEND
152
153public:
154 // destructor thunk
155 // NOLINTBEGIN
156 MCNAPI void $dtor();
157 // NOLINTEND
158
159public:
160 // virtual function thunks
161 // NOLINTBEGIN
162 MCNAPI bool $Create(int family, int type);
163
164 MCNAPI ::rtc::SocketAddress $GetLocalAddress() const;
165
166 MCNAPI ::rtc::SocketAddress $GetRemoteAddress() const;
167
168 MCNAPI int $Bind(::rtc::SocketAddress const& bind_addr);
169
170 MCNAPI int $Connect(::rtc::SocketAddress const& addr);
171
172 MCNAPI int $GetError() const;
173
174 MCNAPI void $SetError(int error);
175
176 MCNAPI ::rtc::Socket::ConnState $GetState() const;
177
178 MCNAPI int $GetOption(::rtc::Socket::Option opt, int* value);
179
180 MCNAPI int $SetOption(::rtc::Socket::Option opt, int value);
181
182 MCNAPI int $Send(void const* pv, uint64 cb);
183
184 MCNAPI int $SendTo(void const* buffer, uint64 length, ::rtc::SocketAddress const& addr);
185
186 MCNAPI int $Recv(void* buffer, uint64 length, int64* timestamp);
187
188 MCNAPI int $RecvFrom(void* buffer, uint64 length, ::rtc::SocketAddress* out_addr, int64* timestamp);
189
191
192 MCNAPI int $Listen(int backlog);
193
194 MCNAPI ::rtc::Socket* $Accept(::rtc::SocketAddress* out_addr);
195
196 MCNAPI int $Close();
197
198 MCNAPI uint64 $DoAccept(uint64 socket, ::sockaddr* addr, int* addrlen);
199
200 MCNAPI int $DoSend(uint64 socket, char const* buf, int len, int flags);
201
202 MCNAPI int $DoSendTo(uint64 socket, char const* buf, int len, int flags, ::sockaddr const* dest_addr, int addrlen);
203
204 MCNAPI void $SetEnabledEvents(uchar events);
205
206 MCNAPI void $EnableEvents(uchar events);
207
208 MCNAPI void $DisableEvents(uchar events);
209 // NOLINTEND
210
211public:
212 // vftables
213 // NOLINTBEGIN
214 MCNAPI static void** $vftableForSocket();
215
216 MCNAPI static void** $vftableForHasSlots();
217 // NOLINTEND
218};
219
220} // namespace rtc
Definition PhysicalSocketServer.h:17
Definition PhysicalSocket.h:20
MCAPI::rtc::Socket::ConnState $GetState() const
MCAPI int TranslateOption(::rtc::Socket::Option opt, int *slevel, int *sopt)
MCAPI void $SetEnabledEvents(uchar events)
MCAPI void $dtor()
MCAPI int $Listen(int backlog)
MCAPI int $SendTo(void const *buffer, uint64 length, ::rtc::SocketAddress const &addr)
MCAPI::rtc::SocketAddress $GetRemoteAddress() const
MCAPI void $SetError(int error)
MCAPI int $DoSendTo(uint64 socket, char const *buf, int len, int flags, ::sockaddr const *dest_addr, int addrlen)
MCAPI::rtc::SocketAddress $GetLocalAddress() const
MCAPI int DoConnect(::rtc::SocketAddress const &connect_addr)
MCAPI int $GetError() const
MCAPI int $Send(void const *pv, uint64 cb)
MCAPI int $Recv(void *buffer, uint64 length, int64 *timestamp)
MCAPI void OnResolveResult(::webrtc::AsyncDnsResolverResult const &result)
MCAPI int $Connect(::rtc::SocketAddress const &addr)
MCAPI int DoReadFromSocket(void *buffer, uint64 length, ::rtc::SocketAddress *out_addr, int64 *timestamp, ::rtc::EcnMarking *ecn)
static MCAPI void ** $vftableForHasSlots()
MCAPI int $Bind(::rtc::SocketAddress const &bind_addr)
MCAPI int $RecvFrom(void *buffer, uint64 length, ::rtc::SocketAddress *out_addr, int64 *timestamp)
MCAPI int $RecvFrom(::rtc::Socket::ReceiveBuffer &buffer)
static MCAPI void ** $vftableForSocket()
MCAPI void UpdateLastError()
MCAPI uint64 $DoAccept(uint64 socket, ::sockaddr *addr, int *addrlen)
MCAPI int $Close()
MCAPI int SetOption(::rtc::Socket::Option opt, void const *value, uint64 size)
MCAPI int $GetOption(::rtc::Socket::Option opt, int *value)
MCAPI int $DoSend(uint64 socket, char const *buf, int len, int flags)
MCAPI void * $ctor(::rtc::PhysicalSocketServer *ss, uint64 s)
MCAPI PhysicalSocket(::rtc::PhysicalSocketServer *ss, uint64 s)
MCAPI int $SetOption(::rtc::Socket::Option opt, int value)
MCAPI void $EnableEvents(uchar events)
MCAPI void $DisableEvents(uchar events)
MCAPI::rtc::Socket * $Accept(::rtc::SocketAddress *out_addr)
MCAPI bool $Create(int family, int type)
Definition SocketAddress.h:12
Definition Socket.h:12
Definition has_slots.h:8
Definition AsyncDnsResolverResult.h:12
Definition buffer.h:5
Definition Alias.h:14
Definition Socket.h:20