Functions and constants functions
Free functions and constants of Windows.
- Use
import ThinkMeta.ConcurrentTasks.Windows.IpSocket;- Namespace
ThinkMeta::ConcurrentTasks::Windows
Concepts
Windows::IpVersionType
Satisfied by IpVersion::V4 and IpVersion::V6.
Syntax
template <typename T>
concept IpVersionType =
std::same_as<T, IpVersion::V4>
|| std::same_as<T, IpVersion::V6>;Template parameters
Ttypename- The type to check.
Windows::SocketType
The base socket type of the IP socket templates.
Syntax
template <typename T> concept SocketType = std::derived_from<T, Socket>;Template parameters
Ttypename- The type to check.
Remarks
Satisfied by Socket and classes derived from it (e.g. AsyncIo::AsyncSocket).
Windows::SockAddrType
The socket address structures accepted where an address is passed by type.
Syntax
template <typename T>
concept SockAddrType =
std::same_as<T, sockaddr>
|| std::same_as<T, sockaddr_in>
|| std::same_as<T, sockaddr_in6>
|| std::same_as<T, sockaddr_storage>;Template parameters
Ttypename- The type to check:
sockaddr,sockaddr_in,sockaddr_in6orsockaddr_storage.
Remarks
The address size passed to Winsock is sizeof(T).
Generated from ThinkMeta.ConcurrentTasks.API @ 137ec1d (2026-10-17).