6 #ifndef _INC_cNetSystem_H
7 #define _INC_cNetSystem_H
12 #include "../GrayLibBase.h"
20 #elif defined(__linux__)
22 #include <sys/types.h>
23 #include <sys/socket.h>
24 #include <sys/ioctl.h>
26 #include <netinet/in.h>
29 #include <arpa/inet.h>
85 return isSingleCreated() && I().isInitNet();
95 #if defined(_WIN32) && ! defined(UNDER_CE)
97 LSTATUS iErrorCode = ::WSAGetLastError();
#define GRAYLIB_LINK
Definition: GrayLibBase.h:35
#define SUCCEEDED(x)
Definition: HResult.h:29
#define FAILED(x)
Definition: HResult.h:30
INT32 HRESULT
_WIN32 style error codes. INT32
Definition: SysTypes.h:465
Definition: cNetSystem.h:45
const WSADATA * get_NetData() const noexcept
Definition: cNetSystem.h:73
static HRESULT GetLastErrorDef(HRESULT hResDef=E_FAIL)
Definition: cNetSystem.h:105
bool isInitNet() const noexcept
Definition: cNetSystem.h:62
static bool IsInitNetCalls()
Definition: cNetSystem.h:80
static HRESULT GetLastError()
Definition: cNetSystem.h:90
static HRESULT __stdcall GetLast() noexcept
Definition: HResult.cpp:130
static HRESULT GetDef(HRESULT hRes, HRESULT hResDef=E_FAIL) noexcept
Definition: HResult.h:232
static HRESULT FromWin32(DWORD dwWin32Code) noexcept
Definition: HResult.h:198
Definition: cSingletonPtr.h:20
Definition: cSingleton.h:127
cSingletonPtr< cNetSystem > cNetSystemPtr
Definition: cNetSystem.h:112
LONG LSTATUS
AKA error_status_t. FACILITY_WIN32 codes returned from RegCreateKeyEx() etc. Maybe NOT GetLastError()...
Definition: HResult.h:74
static bool IsValidApp(const void *pData) noexcept
Definition: cMem.h:42