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