LeviLamina
Loading...
Searching...
No Matches
BasicPacketSocketFactory.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/external/rtc/PacketSocketFactory.h"
7
8// auto generated forward declare list
9// clang-format off
10namespace rtc { class AsyncListenSocket; }
11namespace rtc { class AsyncPacketSocket; }
12namespace rtc { class Socket; }
13namespace rtc { class SocketAddress; }
14namespace rtc { class SocketFactory; }
15namespace rtc { struct PacketSocketTcpOptions; }
16namespace rtc { struct ProxyInfo; }
17namespace webrtc { class AsyncDnsResolverInterface; }
18// clang-format on
19
20namespace rtc {
21
23public:
24 // member variables
25 // NOLINTBEGIN
27 // NOLINTEND
28
29public:
30 // prevent constructor by default
34
35public:
36 // virtual functions
37 // NOLINTBEGIN
38 // vIndex: 0
39 virtual ~BasicPacketSocketFactory() /*override*/;
40
41 // vIndex: 1
42 virtual ::std::unique_ptr<::rtc::AsyncPacketSocket>
43 CreateUdpSocket(::rtc::SocketAddress const& address, ushort min_port, ushort max_port) /*override*/;
44
45 // vIndex: 2
46 virtual ::std::shared_ptr<::rtc::AsyncPacketSocket>
47 CreateGlobalUdpSocket(::rtc::SocketAddress const& address, ushort min_port, ushort max_port) /*override*/;
48
49 // vIndex: 3
50 virtual ::std::unique_ptr<::rtc::AsyncListenSocket> CreateServerTcpSocket(
51 ::rtc::SocketAddress const& local_address,
52 ushort min_port,
53 ushort max_port,
54 int opts
55 ) /*override*/;
56
57 // vIndex: 4
58 virtual ::std::unique_ptr<::rtc::AsyncPacketSocket> CreateClientTcpSocket(
59 ::rtc::SocketAddress const& local_address,
60 ::rtc::SocketAddress const& remote_address,
61 ::rtc::ProxyInfo const& proxy_info,
62 ::std::string const& user_agent,
63 ::rtc::PacketSocketTcpOptions const& tcp_options
64 ) /*override*/;
65
66 // vIndex: 5
67 virtual ::std::unique_ptr<::webrtc::AsyncDnsResolverInterface> CreateAsyncDnsResolver() /*override*/;
68 // NOLINTEND
69
70public:
71 // member functions
72 // NOLINTBEGIN
73 MCNAPI explicit BasicPacketSocketFactory(::rtc::SocketFactory* socket_factory);
74
75 MCNAPI int
76 BindSocket(::rtc::Socket* socket, ::rtc::SocketAddress const& local_address, ushort min_port, ushort max_port);
77 // NOLINTEND
78
79public:
80 // constructor thunks
81 // NOLINTBEGIN
82 MCNAPI void* $ctor(::rtc::SocketFactory* socket_factory);
83 // NOLINTEND
84
85public:
86 // destructor thunk
87 // NOLINTBEGIN
88 MCNAPI void $dtor();
89 // NOLINTEND
90
91public:
92 // virtual function thunks
93 // NOLINTBEGIN
94 MCNAPI ::std::unique_ptr<::rtc::AsyncPacketSocket>
95 $CreateUdpSocket(::rtc::SocketAddress const& address, ushort min_port, ushort max_port);
96
97 MCNAPI ::std::shared_ptr<::rtc::AsyncPacketSocket>
98 $CreateGlobalUdpSocket(::rtc::SocketAddress const& address, ushort min_port, ushort max_port);
99
100 MCNAPI ::std::unique_ptr<::rtc::AsyncListenSocket>
101 $CreateServerTcpSocket(::rtc::SocketAddress const& local_address, ushort min_port, ushort max_port, int opts);
102
103 MCNAPI ::std::unique_ptr<::rtc::AsyncPacketSocket> $CreateClientTcpSocket(
104 ::rtc::SocketAddress const& local_address,
105 ::rtc::SocketAddress const& remote_address,
106 ::rtc::ProxyInfo const& proxy_info,
107 ::std::string const& user_agent,
108 ::rtc::PacketSocketTcpOptions const& tcp_options
109 );
110
111 MCNAPI ::std::unique_ptr<::webrtc::AsyncDnsResolverInterface> $CreateAsyncDnsResolver();
112 // NOLINTEND
113
114public:
115 // vftables
116 // NOLINTBEGIN
117 MCNAPI static void** $vftable();
118 // NOLINTEND
119};
120
121} // namespace rtc
Definition BasicPacketSocketFactory.h:22
static MCAPI void ** $vftable()
MCAPI ::std::unique_ptr<::rtc::AsyncPacketSocket > $CreateUdpSocket(::rtc::SocketAddress const &address, ushort min_port, ushort max_port)
MCAPI ::std::unique_ptr<::rtc::AsyncPacketSocket > $CreateClientTcpSocket(::rtc::SocketAddress const &local_address, ::rtc::SocketAddress const &remote_address, ::rtc::ProxyInfo const &proxy_info, ::std::string const &user_agent, ::rtc::PacketSocketTcpOptions const &tcp_options)
MCAPI ::std::unique_ptr<::webrtc::AsyncDnsResolverInterface > $CreateAsyncDnsResolver()
MCAPI ::std::shared_ptr<::rtc::AsyncPacketSocket > $CreateGlobalUdpSocket(::rtc::SocketAddress const &address, ushort min_port, ushort max_port)
MCAPI int BindSocket(::rtc::Socket *socket, ::rtc::SocketAddress const &local_address, ushort min_port, ushort max_port)
MCAPI ::std::unique_ptr<::rtc::AsyncListenSocket > $CreateServerTcpSocket(::rtc::SocketAddress const &local_address, ushort min_port, ushort max_port, int opts)
MCAPI void * $ctor(::rtc::SocketFactory *socket_factory)
MCAPI BasicPacketSocketFactory(::rtc::SocketFactory *socket_factory)
Definition PacketSocketFactory.h:17
Definition SocketAddress.h:12
Definition SocketFactory.h:12
Definition Socket.h:12
Definition Alias.h:14
Definition PacketSocketTcpOptions.h:7
Definition ProxyInfo.h:7