Nexus Engine  v0.0.1
Loading...
Searching...
No Matches
WindowsSocket_Internal.cpp File Reference
#include "WindowsScoket_Internal.hpp"
#include <winsock2.h>
#include <ws2tcpip.h>
#include <mstcpip.h>
#include <cstring>
Include dependency graph for WindowsSocket_Internal.cpp:

Namespaces

namespace  Nexus
namespace  Nexus::Network
namespace  Nexus::Network::Internal

Macros

#define NOMINMAX
#define WIN32_LEAN_AND_MEAN

Functions

void Nexus::Network::Internal::RawEnsureInitialized ()
RawError Nexus::Network::Internal::RawTranslateErrorCode (int platformErrno)
RawError Nexus::Network::Internal::RawTranslateLastError ()
RawHandle Nexus::Network::Internal::RawCreateSocket (bool isTcp)
void Nexus::Network::Internal::RawCloseSocket (RawHandle handle)
bool Nexus::Network::Internal::RawSetNonBlocking (RawHandle handle, bool enabled)
bool Nexus::Network::Internal::RawSetReuseAddr (RawHandle handle)
bool Nexus::Network::Internal::RawBind (RawHandle handle, unsigned short port)
bool Nexus::Network::Internal::RawListen (RawHandle handle, int backlog)
RawHandle Nexus::Network::Internal::RawAccept (RawHandle handle)
bool Nexus::Network::Internal::RawParseIPv4 (const char *host, unsigned short port, RawAddress &out)
RawResult Nexus::Network::Internal::RawConnect (RawHandle handle, const RawAddress &address, bool isTCPLocal)
RawResult Nexus::Network::Internal::RawCompleteConnect (RawHandle handle)
RawResult Nexus::Network::Internal::RawSend (RawHandle handle, const void *data, unsigned long size)
RawResult Nexus::Network::Internal::RawReceive (RawHandle handle, void *buffer, unsigned long size)
RawResult Nexus::Network::Internal::RawSendTo (RawHandle handle, const RawAddress &dest, const void *data, unsigned long size)
RawReceiveResult Nexus::Network::Internal::RawReceiveFrom (RawHandle handle, void *buffer, unsigned long size)

Macro Definition Documentation

◆ NOMINMAX

#define NOMINMAX

◆ WIN32_LEAN_AND_MEAN

#define WIN32_LEAN_AND_MEAN