3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/external/rtc/AdapterType.h"
27MCNAPI int64 ASN1TimeToSec(uchar
const* s, uint64 length,
bool long_format);
29MCNAPI ::std::string AdapterTypeToString(::rtc::AdapterType type);
31MCNAPI uint64 ComputeDigest(::std::string_view alg,
void const* input, uint64 in_len,
void* output, uint64 out_len);
33MCNAPI uint64 ComputeHmac(
34 ::std::string_view alg,
43MCNAPI uint64 ComputeHmac(
44 ::rtc::MessageDigest* digest,
53MCNAPI
void CopySocketInformationToPacketInfo(
54 uint64 packet_size_bytes,
55 ::rtc::AsyncPacketSocket
const& socket_from,
56 bool is_connectionless,
57 ::rtc::PacketInfo* info
60MCNAPI ::std::unique_ptr<::rtc::SocketServer> CreateDefaultSocketServer();
62MCNAPI uint CreateRandomId();
64MCNAPI uint64 CreateRandomId64();
66MCNAPI uint CreateRandomNonZeroId();
68MCNAPI
bool CreateRandomString(uint64 len, ::std::string* str);
70MCNAPI ::std::string CreateRandomString(uint64 len);
72MCNAPI ::std::string CreateRandomUuid();
74MCNAPI ulong CurrentThreadId();
76MCNAPI ulong CurrentThreadRef();
78MCNAPI ::rtc::SocketAddress EmptySocketAddressWithFamily(
int family);
80MCNAPI
void ExplicitZeroMemory(
void* ptr, uint64 len);
82MCNAPI ::rtc::IPAddress GetAnyIP(
int family);
84MCNAPI
double GetNextMovingAverage(
double prev_average,
double cur,
double ratio);
86MCNAPI
bool GetSrtpKeyAndSaltLengths(
int crypto_suite,
int* key_length,
int* salt_length);
88MCNAPI
int IPAddressPrecedence(::rtc::IPAddress
const& ip);
90MCNAPI
bool IPFromAddrInfo(::addrinfo* info, ::rtc::IPAddress* out);
92MCNAPI
bool IPFromString(::std::string_view str, ::rtc::IPAddress* out);
94MCNAPI
bool IPIsAny(::rtc::IPAddress
const& ip);
96MCNAPI
bool IPIsLinkLocal(::rtc::IPAddress
const& ip);
98MCNAPI
bool IPIsLoopback(::rtc::IPAddress
const& ip);
100MCNAPI
bool IPIsMacBased(::rtc::IPAddress
const& ip);
102MCNAPI
bool IPIsPrivate(::rtc::IPAddress
const& ip);
104MCNAPI
bool IPIsULA(::rtc::IPAddress
const& ip);
106MCNAPI
bool IPIsUnspec(::rtc::IPAddress
const& ip);
108MCNAPI
bool InitRandom(
int seed);
110MCNAPI
bool InitializeSSL();
112MCNAPI
bool IsFips180DigestAlgorithm(::std::string_view alg);
114MCNAPI
bool IsGcmCryptoSuite(
int crypto_suite);
116MCNAPI
bool IsThreadRefEqual(ulong
const& a, ulong
const& b);
118MCNAPI ::std::string MakeNetworkKey(::std::string_view name, ::rtc::IPAddress
const& prefix,
int prefix_length);
120MCNAPI
void SetCurrentThreadName(
char const* name);
122MCNAPI
bool SocketAddressFromSockAddrStorage(::sockaddr_storage
const& addr, ::rtc::SocketAddress* out);
124MCNAPI ::std::string SrtpCryptoSuiteToName(
int crypto_suite);
126MCNAPI ::std::string StringFormat(
char const*, ...);
128MCNAPI int64 SystemTimeMillis();
130MCNAPI int64 SystemTimeNanos();
134MCNAPI int64 TimeAfter(int64 elapsed);
136MCNAPI int64 TimeDiff(int64 later, int64 earlier);
138MCNAPI int64 TimeMicros();
140MCNAPI int64 TimeMillis();
142MCNAPI int64 TimeUTCMicros();
144MCNAPI int64 TimeUTCMillis();
146MCNAPI int64 TmToSeconds(::tm
const& tm);
148MCNAPI ::std::string ToHex(
int i);
150MCNAPI ::std::string ToString(
bool b);
152MCNAPI ::std::string ToString(
double d);
154MCNAPI ::std::string ToString(
long double d);
156MCNAPI ::std::string ToString(ushort s);
158MCNAPI ::std::string ToString(
int s);
160MCNAPI ::std::string ToString(uint s);
162MCNAPI ::std::string ToString(
long s);
164MCNAPI ::std::string ToString(ulong s);
166MCNAPI ::std::string ToString(::std::string_view s);
168MCNAPI ::std::string ToString(int64 s);
170MCNAPI ::std::string ToString(uint64 s);
172MCNAPI ::std::string TransformAlpnProtocols(::std::vector<::std::string>
const& alpn_protocols);
174MCNAPI ::rtc::IPAddress TruncateIP(::rtc::IPAddress
const& ip,
int length);
176MCNAPI uint UpdateCrc32(uint start,
void const* buf, uint64 len);
178MCNAPI int64 WinUwpSystemTimeNanos();
180MCNAPI uint64 hex_decode_with_delimiter(::rtc::ArrayView<char> cbuffer, ::std::string_view source,
char delimiter);
182MCNAPI ::std::string hex_encode(::std::string_view str);
184MCNAPI ::std::string hex_encode_with_delimiter(::std::string_view source,
char delimiter);
186MCNAPI
char const* inet_ntop(
int af,
void const* src,
char* dst,
int size);
188MCNAPI
int inet_pton(
int af, ::std::string_view src,
void* dst);
190MCNAPI ::std::vector<::std::string_view> split(::std::string_view source,
char delimiter);
192MCNAPI uint64 tokenize(::std::string_view source,
char delimiter, ::std::vector<::std::string>* fields);
194MCNAPI
bool tokenize_first(::std::string_view source,
char delimiter, ::std::string* token, ::std::string* rest);
196MCNAPI
char const* win32_inet_ntop(
int af,
void const* src,
char* dst,
int size);
198MCNAPI
int win32_inet_pton(
int af,
char const* src,
void* dst);
203MCNAPI ::std::add_lvalue_reference_t<char const[]> DIGEST_MD5();
205MCNAPI ::std::add_lvalue_reference_t<char const[]> DIGEST_SHA_1();
207MCNAPI ::std::add_lvalue_reference_t<char const[]> DIGEST_SHA_224();
209MCNAPI ::std::add_lvalue_reference_t<char const[]> DIGEST_SHA_256();
211MCNAPI ::std::add_lvalue_reference_t<char const[]> DIGEST_SHA_384();
213MCNAPI ::std::add_lvalue_reference_t<char const[]> DIGEST_SHA_512();
215MCNAPI ::rtc::ClockInterface*& g_clock();
217MCNAPI ::std::add_lvalue_reference_t<char const[]> kCsAeadAes128Gcm();
219MCNAPI ::std::add_lvalue_reference_t<char const[]> kCsAeadAes256Gcm();
221MCNAPI ::std::add_lvalue_reference_t<char const[]> kCsAesCm128HmacSha1_32();
223MCNAPI ::std::add_lvalue_reference_t<char const[]> kCsAesCm128HmacSha1_80();
225MCNAPI ::std::add_lvalue_reference_t<char const[]> kPemTypeCertificate();
227MCNAPI ::std::add_lvalue_reference_t<char const[]> kPemTypeEcPrivateKey();
229MCNAPI ::std::add_lvalue_reference_t<char const[]> kPemTypeRsaPrivateKey();
231MCNAPI ::std::add_lvalue_reference_t<char const[]> kPublicIPv4Host();
233MCNAPI ::std::add_lvalue_reference_t<char const[]> kPublicIPv6Host();
Definition AsyncPacketSocket.h:20
Definition ClockInterface.h:7
Definition MessageDigest.h:7
Definition SocketAddress.h:12
Definition SocketServer.h:16
Definition PacketInfo.h:7