LeviLamina
Loading...
Searching...
No Matches
PacketSocketFactory.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7namespace rtc { class AsyncListenSocket; }
8namespace rtc { class AsyncPacketSocket; }
9namespace rtc { class SocketAddress; }
10namespace rtc { struct PacketSocketTcpOptions; }
11namespace rtc { struct ProxyInfo; }
12namespace webrtc { class AsyncDnsResolverInterface; }
13// clang-format on
14
15namespace rtc {
16
18public:
19 // PacketSocketFactory inner types define
20 enum class Options : int {
21 // bitfield representation
22 TlsFake = 1 << 0,
23 Ssltcp = 1 << 0,
24 Tls = 1 << 1,
25 Stun = 1 << 2,
26 TlsInsecure = 1 << 3,
27 };
28
29public:
30 // virtual functions
31 // NOLINTBEGIN
32 // vIndex: 0
33 virtual ~PacketSocketFactory() = default;
34
35 // vIndex: 1
36 virtual ::rtc::AsyncPacketSocket* CreateUdpSocket(::rtc::SocketAddress const&, ushort, ushort) = 0;
37
38 // vIndex: 2
39 virtual ::rtc::AsyncListenSocket* CreateServerTcpSocket(::rtc::SocketAddress const&, ushort, ushort, int) = 0;
40
41 // vIndex: 3
42 virtual ::rtc::AsyncPacketSocket*
43 CreateClientTcpSocket(::rtc::SocketAddress const&, ::rtc::SocketAddress const&, ::rtc::ProxyInfo const&, ::std::string const&, ::rtc::PacketSocketTcpOptions const&) = 0;
44
45 // vIndex: 4
46 virtual ::std::unique_ptr<::webrtc::AsyncDnsResolverInterface> CreateAsyncDnsResolver() = 0;
47 // NOLINTEND
48
49public:
50 // destructor thunk
51 // NOLINTBEGIN
52
53 // NOLINTEND
54
55public:
56 // virtual function thunks
57 // NOLINTBEGIN
58
59 // NOLINTEND
60};
61
62} // namespace rtc
Definition Options.h:32
Definition PacketSocketFactory.h:17
Definition SocketAddress.h:12
Definition PacketSocketTcpOptions.h:7
Definition ProxyInfo.h:7