mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-07-03 23:47:12 +02:00
Add D++ library.
This commit is contained in:
30
vendor/DPP/include/dpp/socket.h
vendored
Normal file
30
vendor/DPP/include/dpp/socket.h
vendored
Normal file
@ -0,0 +1,30 @@
|
||||
#pragma once
|
||||
|
||||
#ifndef _WIN32
|
||||
#ifndef SOCKET
|
||||
#define SOCKET int
|
||||
#endif
|
||||
#endif
|
||||
|
||||
namespace dpp
|
||||
{
|
||||
/**
|
||||
* @brief Represents a socket file descriptor.
|
||||
* This is used to ensure parity between windows and unix-like systems.
|
||||
*/
|
||||
typedef SOCKET socket;
|
||||
}
|
||||
|
||||
#ifndef SOCKET_ERROR
|
||||
/**
|
||||
* @brief Represents a socket in error state
|
||||
*/
|
||||
#define SOCKET_ERROR -1
|
||||
#endif
|
||||
|
||||
#ifndef INVALID_SOCKET
|
||||
/**
|
||||
* @brief Represents a socket which is not yet assigned
|
||||
*/
|
||||
#define INVALID_SOCKET ~0
|
||||
#endif
|
Reference in New Issue
Block a user