LeviLamina
Loading...
Searching...
No Matches
SocketAddress.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7namespace rtc { class IPAddress; }
8// clang-format on
9
10namespace rtc {
11
13public:
14 // member variables
15 // NOLINTBEGIN
21 // NOLINTEND
22
23public:
24 // member functions
25 // NOLINTBEGIN
26 MCAPI void Clear();
27
28 MCAPI bool EqualIPs(::rtc::SocketAddress const&) const;
29
30 MCAPI bool EqualPorts(::rtc::SocketAddress const&) const;
31
32 MCAPI bool FromString(::std::string_view);
33
34 MCAPI ::std::string HostAsSensitiveURIString() const;
35
36 MCAPI ::std::string HostAsURIString() const;
37
38 MCAPI bool IsAnyIP() const;
39
40 MCAPI bool IsLoopbackIP() const;
41
42 MCAPI bool IsNil() const;
43
44 MCAPI bool IsPrivateIP() const;
45
46 MCAPI bool IsUnresolvedIP() const;
47
48 MCAPI ::std::string PortAsString() const;
49
50 MCAPI void SetIP(::rtc::IPAddress const&);
51
52 MCAPI void SetIP(::std::string_view);
53
54 MCAPI void SetPort(int);
55
56 MCAPI void SetResolvedIP(::rtc::IPAddress const&);
57
58 MCAPI SocketAddress();
59
61
62 MCAPI SocketAddress(::rtc::IPAddress const&, int);
63
64 MCAPI SocketAddress(::std::string_view, int);
65
66 MCAPI ::std::string ToSensitiveNameAndAddressString() const;
67
68 MCAPI ::std::string ToSensitiveString() const;
69
70 MCAPI uint64 ToSockAddrStorage(::sockaddr_storage*) const;
71
72 MCAPI ::std::string ToString() const;
73
74 MCAPI ::rtc::IPAddress const& ipaddr() const;
75
76 MCAPI bool operator<(::rtc::SocketAddress const&) const;
77
78 MCAPI ::rtc::SocketAddress& operator=(::rtc::SocketAddress const&);
79
80 MCAPI bool operator==(::rtc::SocketAddress const&) const;
81
82 MCAPI ushort port() const;
83
84 MCAPI ~SocketAddress();
85 // NOLINTEND
86
87public:
88 // constructor thunks
89 // NOLINTBEGIN
90 MCAPI void* $ctor();
91
92 MCAPI void* $ctor(::rtc::SocketAddress const&);
93
94 MCAPI void* $ctor(::rtc::IPAddress const&, int);
95
96 MCAPI void* $ctor(::std::string_view, int);
97 // NOLINTEND
98
99public:
100 // destructor thunk
101 // NOLINTBEGIN
102 MCAPI void $dtor();
103 // NOLINTEND
104};
105
106} // namespace rtc
Definition IPAddress.h:7
Definition SocketAddress.h:12
Definition Alias.h:14