DotNetDupe 4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
Loading...
Searching...
No Matches
Socket.cpp File Reference
#include "pch.h"
#include "System/String.h"
#include "System/Net/Sockets/Socket.h"
#include "System/Net/Sockets/SocketException.h"
#include "System/ArgumentException.h"
#include <mutex>
#include <cstring>
#include <cstdlib>
#include <winsock2.h>
#include <ws2tcpip.h>

Go to the source code of this file.

Namespaces

namespace  DotNetDupe
namespace  DotNetDupe::System
namespace  DotNetDupe::System::Net
namespace  DotNetDupe::System::Net::Sockets

Macros

#define SD_BOTH   2
#define SD_RECEIVE   0
#define SD_SEND   1
#define WIN32_LEAN_AND_MEAN

Typedefs

using SockLen = int

Functions

static SOCKET DotNetDupe::System::Net::Sockets::CreateNativeSocket (AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType)
static void DotNetDupe::System::Net::Sockets::FormatSockAddrIp (const sockaddr_in &addr, String &ip, int &port)
static int DotNetDupe::System::Net::Sockets::GetLastErrorCode ()
static void DotNetDupe::System::Net::Sockets::InitializeSockets ()
static void DotNetDupe::System::Net::Sockets::InitSockAddrIn (const String &ip, int port, sockaddr_in &addr)
static bool DotNetDupe::System::Net::Sockets::IsPeerConnected (SOCKET hSocket)
static bool DotNetDupe::System::Net::Sockets::IsSocketActivePeek (SOCKET hSocket)
static int DotNetDupe::System::Net::Sockets::SelectSingleSocket (SOCKET hSocket, int microSeconds, SelectMode mode)

Macro Definition Documentation

◆ SD_BOTH

#define SD_BOTH   2

Definition at line 19 of file Socket.cpp.

Referenced by DotNetDupe::System::Net::Sockets::Socket::Shutdown().

◆ SD_RECEIVE

#define SD_RECEIVE   0

Definition at line 17 of file Socket.cpp.

Referenced by DotNetDupe::System::Net::Sockets::Socket::Shutdown().

◆ SD_SEND

#define SD_SEND   1

Definition at line 18 of file Socket.cpp.

Referenced by DotNetDupe::System::Net::Sockets::Socket::Shutdown().

◆ WIN32_LEAN_AND_MEAN

#define WIN32_LEAN_AND_MEAN

Definition at line 11 of file Socket.cpp.

Typedef Documentation

◆ SockLen

using SockLen = int

Definition at line 15 of file Socket.cpp.