Skip to content
LeviMC
English
AutoLightDark
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
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 MCNAPI void Clear();
26
27 MCNAPI ::webrtc::IPAddressType GetIPAddressType() const;
28
29 MCNAPI ::std::string HostAsSensitiveURIString() const;
30
31 MCAPI ::std::string HostAsURIString() const;
32
33 MCAPI bool IsAnyIP() const;
34
35 MCNAPI bool IsLoopbackIP() const;
36
37 MCAPI bool IsNil() const;
38
39 MCNAPI bool IsPrivateIP() const;
40
41 MCNAPI bool IsUnresolvedIP() const;
42
43 MCNAPI ::std::string PortAsString() const;
44
45 MCNAPI void SetIP(::std::string_view hostname);
46
47 MCNAPI void SetIP(::webrtc::IPAddress const& ip);
48
49 MCNAPI void SetPort(int port);
50
51 MCNAPI void SetResolvedIP(::webrtc::IPAddress const& ip);
52
53 MCNAPI SocketAddress();
54
56
57 MCNAPI SocketAddress(::std::string_view hostname, int port);
58
59 MCNAPI SocketAddress(::webrtc::IPAddress const& ip, int port);
60
61 MCNAPI ::std::string ToSensitiveNameAndAddressString() const;
62
63 MCNAPI ::std::string ToSensitiveString() const;
64
65 MCNAPI uint64 ToSockAddrStorage(::sockaddr_storage* addr) const;
66
67 MCNAPI ::std::string ToString() const;
68
69 MCNAPI ::webrtc::IPAddress const& ipaddr() const;
70
71 MCNAPI bool operator<(::webrtc::SocketAddress const& addr) const;
72
73 MCNAPI ::webrtc::SocketAddress& operator=(::webrtc::SocketAddress const& addr);
74
75 MCNAPI 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 MCNAPI void* $ctor();
86
87 MCNAPI void* $ctor(::webrtc::SocketAddress const& addr);
88
89 MCNAPI void* $ctor(::std::string_view hostname, int port);
90
91 MCNAPI 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
MCAPI void SetPort(int port)
MCAPI::std::string ToString() const
MCAPI void * $ctor(::webrtc::SocketAddress const &addr)
MCAPI bool operator==(::webrtc::SocketAddress const &addr) const
MCAPI void * $ctor(::webrtc::IPAddress const &ip, int port)
MCAPI::std::string ToSensitiveNameAndAddressString() const
MCAPI SocketAddress(::webrtc::IPAddress const &ip, int port)
MCAPI SocketAddress(::std::string_view hostname, int port)
MCAPI bool operator<(::webrtc::SocketAddress const &addr) const
MCAPI void SetResolvedIP(::webrtc::IPAddress const &ip)
MCAPI::webrtc::SocketAddress & operator=(::webrtc::SocketAddress const &addr)
MCAPI::std::string ToSensitiveString() const
MCAPI::webrtc::IPAddress const & ipaddr() const
MCAPI SocketAddress(::webrtc::SocketAddress const &addr)
MCAPI bool IsUnresolvedIP() const
MCAPI uint64 ToSockAddrStorage(::sockaddr_storage *addr) const
MCAPI void SetIP(::std::string_view hostname)
MCAPI void * $ctor()
MCAPI::std::string PortAsString() const
MCAPI bool IsPrivateIP() const
MCAPI::webrtc::IPAddressType GetIPAddressType() const
MCAPI void * $ctor(::std::string_view hostname, int port)
MCAPI::std::string HostAsSensitiveURIString() const
MCAPI void SetIP(::webrtc::IPAddress const &ip)
MCAPI bool IsLoopbackIP() const