MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / TestIPv6Enabled

Function TestIPv6Enabled

test/host/socket/wasi_socket.cpp:74–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74bool TestIPv6Enabled() {
75 static bool Resolved = false;
76 static bool IPv6Enabled;
77
78 if (!Resolved) {
79 IPv6Enabled = TrySetUpIPV6Socket();
80 Resolved = true;
81 }
82
83 return IPv6Enabled;
84}
85
86template <typename T> void unalignedCopy(T *Dest, const T &Src) noexcept {
87 auto DestSpan = as_writable_bytes(WasmEdge::Span<T, 1>(Dest, 1));

Callers 1

TESTFunction · 0.85

Calls 1

TrySetUpIPV6SocketFunction · 0.85

Tested by

no test coverage detected