Sane C++ Libraries
C++ Platform Abstraction Libraries
SC::SocketNetworking Struct Reference

Networking globals initialization (Winsock2 WSAStartup) More...

#include <SocketDescriptor.h>

Static Public Member Functions

static Result initNetworking ()
 Initializes Winsock2 on Windows (WSAStartup) More...
 
static Result shutdownNetworking ()
 Shutdowns Winsock2 on Windows (WSAStartup) More...
 
static bool isNetworkingInited ()
 Check if initNetworking has been previously called. More...
 

Detailed Description

Networking globals initialization (Winsock2 WSAStartup)

Member Function Documentation

◆ initNetworking()

static Result SC::SocketNetworking::initNetworking ( )
static

Initializes Winsock2 on Windows (WSAStartup)

Returns
Valid Result if Winsock2 has been successfully initialized

◆ isNetworkingInited()

static bool SC::SocketNetworking::isNetworkingInited ( )
static

Check if initNetworking has been previously called.

Returns
true if initNetworking has been previously called

◆ shutdownNetworking()

static Result SC::SocketNetworking::shutdownNetworking ( )
static

Shutdowns Winsock2 on Windows (WSAStartup)

Returns
Valid Result if Winsock2 has been successfully shutdown

The documentation for this struct was generated from the following file: