3#ifndef _TIME_SHIELD_WSA_GUARD_HPP_INCLUDED
4#define _TIME_SHIELD_WSA_GUARD_HPP_INCLUDED
38 const WSADATA&
data() const noexcept {
WsaGuard & operator=(const WsaGuard &)=delete
const WSADATA & data() const noexcept
Returns the WSAData structure (valid only if successful).
int ret_code() const noexcept
Returns the result code from WSAStartup.
static const WsaGuard & instance()
Returns the singleton instance, initializing WSA if needed.
bool success() const noexcept
Returns whether WSAStartup was successful.
WsaGuard(const WsaGuard &)=delete
Main namespace for the Time Shield library.