Finished implementing, now for the testing phase.
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
#pragma once
|
||||
|
||||
#include "ehs/Str.h"
|
||||
|
||||
#ifndef EHS_IPV4_HEADER
|
||||
#define EHS_IPV4_HEADER 60
|
||||
#include <string>
|
||||
#endif
|
||||
|
||||
#ifndef EHS_IPV6_HEADER
|
||||
@@ -22,10 +25,10 @@
|
||||
|
||||
namespace ehs
|
||||
{
|
||||
enum class AddrType
|
||||
enum class IP
|
||||
{
|
||||
IPV6,
|
||||
IPV4
|
||||
V4,
|
||||
V6
|
||||
};
|
||||
|
||||
enum class ContentType
|
||||
@@ -41,6 +44,13 @@ namespace ehs
|
||||
NONE
|
||||
};
|
||||
|
||||
struct Endpoint
|
||||
{
|
||||
IP version = IP::V6;
|
||||
Str_8 address;
|
||||
UInt_16 port = 0;
|
||||
};
|
||||
|
||||
#if defined(EHS_OS_WINDOWS)
|
||||
typedef UInt_64 Socket;
|
||||
#define EHS_INVALID_SOCKET EHS_UINT_64_MAX
|
||||
|
Reference in New Issue
Block a user