Initial commit

This commit is contained in:
alexpete
2021-03-05 11:26:34 -08:00
commit a10351f38d
27091 changed files with 5521199 additions and 0 deletions
@@ -0,0 +1,21 @@
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or the license accompanying this file. Do not
* remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*
*/
#pragma once
#define AZ_TRAIT_OS_USE_WINSOCK 0
#define AZ_TRAIT_OS_USE_MACH 0
#define AZ_TRAIT_USE_SOCKET_SERVER_EPOLL 1
#define AZ_TRAIT_USE_SOCKET_SERVER_SELECT 0
#define AZ_TRAIT_USE_OPENSSL 0
#define AZ_TRAIT_NEEDS_HTONLL 1
@@ -0,0 +1,15 @@
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or the license accompanying this file. Do not
* remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*
*/
#pragma once
#include <UnixLike/AzNetworking/Utilities/Endian_UnixLike.h>
@@ -0,0 +1,15 @@
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or the license accompanying this file. Do not
* remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*
*/
#pragma once
#include <UnixLike/AzNetworking/Utilities/NetworkIncludes_UnixLike.h>
@@ -0,0 +1,10 @@
#
# All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
# its licensors.
#
# For complete copyright and license terms please see the LICENSE at the root of this
# distribution (the "License"). All use of this software is governed by the License,
# or, if provided, by the license below or the license accompanying this file. Do not
# remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#
@@ -0,0 +1,20 @@
#
# All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
# its licensors.
#
# For complete copyright and license terms please see the LICENSE at the root of this
# distribution (the "License"). All use of this software is governed by the License,
# or, if provided, by the license below or the license accompanying this file. Do not
# remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#
set(FILES
../Common/Default/AzNetworking/Utilities/IpAddress_Default.cpp
../Common/UnixLike/AzNetworking/Utilities/Endian_UnixLike.h
../Common/UnixLike/AzNetworking/Utilities/NetworkCommon_UnixLike.cpp
../Common/UnixLike/AzNetworking/Utilities/NetworkIncludes_UnixLike.h
AzNetworking/AzNetworking_Traits_Platform.h
AzNetworking/Utilities/Endian_Platform.h
AzNetworking/Utilities/NetworkIncludes_Platform.h
)
@@ -0,0 +1,15 @@
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or the license accompanying this file. Do not
* remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*
*/
#pragma once
#include <Machine/endian.h>
@@ -0,0 +1,60 @@
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or the license accompanying this file. Do not
* remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*
*/
#include <AzNetworking/Utilities/IpAddress.h>
#include <AzNetworking/AzNetworking_Traits_Platform.h>
#include <AzNetworking/Serialization/ISerializer.h>
#include <AzNetworking/Utilities/Endian.h>
#include <AzNetworking/Utilities/NetworkIncludes.h>
#include <AzCore/StringFunc/StringFunc.h>
#include <AzCore/Console/ILogger.h>
#include <stdlib.h>
namespace AzNetworking
{
namespace Platform
{
void InitIpAddress(uint32_t& ipv4Address, uint16_t& port,
const char* hostname, const char* service, ProtocolType type)
{
struct addrinfo* res = nullptr;
{
struct addrinfo hints;
memset(&hints, 0, sizeof hints);
hints.ai_family = AF_INET;
hints.ai_socktype = (type == ProtocolType::Tcp) ? SOCK_STREAM : SOCK_DGRAM;
getaddrinfo(hostname, service, &hints, &res);
}
if (res == nullptr)
{
AZLOG_WARN("Hostname lookup for %s:%s returned a NULL result", hostname, service);
return;
}
if (res->ai_family == AF_INET)
{
// For an Ipv4 address, the return address format is:
// 2 most significant bytes are port number in network byte order
// Next 4 bytes are IPv4 address in network byte order
const uint8_t* addr = (const uint8_t*)res->ai_addr->sa_data;
uint16_t& osPort = (uint16_t&)(addr[0]);
uint32_t& osAddr = (uint32_t&)(addr[2]);
ipv4Address = ntohl(osAddr);
port = ntohs(osPort);
}
freeaddrinfo(res);
}
}
}
@@ -0,0 +1,17 @@
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or the license accompanying this file. Do not
* remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*
*/
#pragma once
#include <endian.h>
#include <string.h>
#include <arpa/inet.h>
@@ -0,0 +1,82 @@
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or the license accompanying this file. Do not
* remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*
*/
#include <AzNetworking/Utilities/NetworkCommon.h>
#include <AzCore/Console/ILogger.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <fcntl.h>
#include <string.h>
namespace AzNetworking
{
namespace Platform
{
bool SocketLayerInit()
{
// nothing to do
AZLOG_INFO("Network layer initialized");
return true;
}
bool SocketLayerShutdown()
{
// nothing to do
AZLOG_INFO("Network layer shut down");
return true;
}
bool SetSocketNonBlocking(SocketFd socketFd)
{
// Set non-blocking
int nonBlocking = 1;
if (fcntl(int32_t(socketFd), F_SETFL, O_NONBLOCK, nonBlocking) < 0)
{
const int32_t error = GetLastNetworkError();
AZLOG_ERROR("Failed to set non-blocking for socket (%d:%s)", error, GetNetworkErrorDesc(error));
return false;
}
return true;
}
void CloseSocket(SocketFd socketFd)
{
close(int32_t(socketFd));
}
int32_t GetLastNetworkError()
{
return errno;
}
bool ErrorIsWouldBlock(int32_t errorCode)
{
return errorCode == EWOULDBLOCK;
}
bool ErrorIsForciblyClosed(int32_t, bool&)
{
return false;
}
const char* GetNetworkErrorDesc(int32_t errorCode)
{
static AZ_THREAD_LOCAL char buffer[1024];
strerror_r(errorCode, buffer, sizeof(buffer));
return buffer;
}
}
}
@@ -0,0 +1,21 @@
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or the license accompanying this file. Do not
* remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*
*/
#pragma once
#include <arpa/inet.h>
#include <fcntl.h>
#include <netdb.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <sys/socket.h>
#include <sys/types.h>
@@ -0,0 +1,15 @@
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or the license accompanying this file. Do not
* remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*
*/
#pragma once
// nothing to do here
@@ -0,0 +1,116 @@
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or the license accompanying this file. Do not
* remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*
*/
#include <AzNetworking/Utilities/NetworkCommon.h>
#include <AzCore/Console/IConsole.h>
#include <AzCore/Console/ILogger.h>
#include <winsock2.h>
namespace AzNetworking
{
namespace Platform
{
bool SocketLayerInit()
{
WSADATA wsaData;
const WORD wVersionRequested = MAKEWORD(2, 2);
const int32_t error = WSAStartup(wVersionRequested, &wsaData);
if (error != NO_ERROR)
{
AZLOG_ERROR("WSAStartup failed with error code %d", error);
return false;
}
AZLOG_INFO("Network layer initialized");
return true;
}
bool SocketLayerShutdown()
{
WSACleanup();
AZLOG_INFO("Network layer shut down");
return true;
}
bool SetSocketNonBlocking(SocketFd socketFd)
{
// Set non-blocking
DWORD nonBlocking = 1;
if (ioctlsocket(int32_t(socketFd), FIONBIO, &nonBlocking) != SocketOpResultSuccess)
{
const int32_t error = GetLastNetworkError();
AZLOG_ERROR("Failed to set non-blocking for socket (%d:%s)", error, GetNetworkErrorDesc(error));
return false;
}
return true;
}
void CloseSocket(SocketFd socketFd)
{
closesocket(int32_t(socketFd));
}
int32_t GetLastNetworkError()
{
return WSAGetLastError();
}
bool ErrorIsWouldBlock(int32_t errorCode)
{
return errorCode == WSAEWOULDBLOCK;
}
bool ErrorIsForciblyClosed(int32_t errorCode, bool& ignoreError)
{
static const int32_t WindowsForciblyClosedError = 10054; // 'Existing connection was forcibly closed by the remote host...'
if (errorCode == WindowsForciblyClosedError) // Filter WindowsForciblyClosedError messages on windows
{
if (auto console = AZ::Interface<AZ::IConsole>::Get(); console)
{
console->GetCvarValue("net_UdpIgnoreWin10054", ignoreError);
}
return true;
}
return false;
}
const char* GetNetworkErrorDesc(int32_t errorCode)
{
static AZ_THREAD_LOCAL char buffer[1024];
#if AZ_TRAIT_OS_IS_HOST_OS_PLATFORM
FormatMessageA
(
FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS,
nullptr,
errorCode,
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
buffer,
sizeof(buffer),
nullptr
);
// Strip newlines from FormatMessageA output
const size_t messageLen = strnlen_s(buffer, sizeof(buffer));
if ((messageLen > 2) && (buffer[messageLen - 2] == '\r' || buffer[messageLen - 2] == '\n'))
{
buffer[messageLen - 2] = '\0';
}
#else
strerror_s(buffer, sizeof(buffer), errorCode);
#endif
return buffer;
}
}
}
@@ -0,0 +1,18 @@
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or the license accompanying this file. Do not
* remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*
*/
#pragma once
#include <winsock2.h>
#include <ws2tcpip.h>
using socklen_t = int32_t;
@@ -0,0 +1,21 @@
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or the license accompanying this file. Do not
* remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*
*/
#pragma once
#define AZ_TRAIT_OS_USE_WINSOCK 0
#define AZ_TRAIT_OS_USE_MACH 0
#define AZ_TRAIT_USE_SOCKET_SERVER_EPOLL 1
#define AZ_TRAIT_USE_SOCKET_SERVER_SELECT 0
#define AZ_TRAIT_USE_OPENSSL 1
#define AZ_TRAIT_NEEDS_HTONLL 1
@@ -0,0 +1,15 @@
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or the license accompanying this file. Do not
* remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*
*/
#pragma once
#include <UnixLike/AzNetworking/Utilities/Endian_UnixLike.h>
@@ -0,0 +1,15 @@
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or the license accompanying this file. Do not
* remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*
*/
#pragma once
#include <UnixLike/AzNetworking/Utilities/NetworkIncludes_UnixLike.h>
@@ -0,0 +1,10 @@
#
# All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
# its licensors.
#
# For complete copyright and license terms please see the LICENSE at the root of this
# distribution (the "License"). All use of this software is governed by the License,
# or, if provided, by the license below or the license accompanying this file. Do not
# remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#
@@ -0,0 +1,20 @@
#
# All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
# its licensors.
#
# For complete copyright and license terms please see the LICENSE at the root of this
# distribution (the "License"). All use of this software is governed by the License,
# or, if provided, by the license below or the license accompanying this file. Do not
# remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#
set(FILES
../Common/Default/AzNetworking/Utilities/IpAddress_Default.cpp
../Common/UnixLike/AzNetworking/Utilities/Endian_UnixLike.h
../Common/UnixLike/AzNetworking/Utilities/NetworkCommon_UnixLike.cpp
../Common/UnixLike/AzNetworking/Utilities/NetworkIncludes_UnixLike.h
AzNetworking/AzNetworking_Traits_Platform.h
AzNetworking/Utilities/Endian_Platform.h
AzNetworking/Utilities/NetworkIncludes_Platform.h
)
@@ -0,0 +1,21 @@
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or the license accompanying this file. Do not
* remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*
*/
#pragma once
#define AZ_TRAIT_OS_USE_WINSOCK 0
#define AZ_TRAIT_OS_USE_MACH 1
#define AZ_TRAIT_USE_SOCKET_SERVER_EPOLL 0
#define AZ_TRAIT_USE_SOCKET_SERVER_SELECT 1
#define AZ_TRAIT_USE_OPENSSL 1
#define AZ_TRAIT_NEEDS_HTONLL 0
@@ -0,0 +1,15 @@
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or the license accompanying this file. Do not
* remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*
*/
#pragma once
#include <Apple/AzNetworking/Utilities/Endian_Apple.h>
@@ -0,0 +1,15 @@
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or the license accompanying this file. Do not
* remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*
*/
#pragma once
#include <UnixLike/AzNetworking/Utilities/NetworkIncludes_UnixLike.h>
@@ -0,0 +1,10 @@
#
# All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
# its licensors.
#
# For complete copyright and license terms please see the LICENSE at the root of this
# distribution (the "License"). All use of this software is governed by the License,
# or, if provided, by the license below or the license accompanying this file. Do not
# remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#
@@ -0,0 +1,20 @@
#
# All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
# its licensors.
#
# For complete copyright and license terms please see the LICENSE at the root of this
# distribution (the "License"). All use of this software is governed by the License,
# or, if provided, by the license below or the license accompanying this file. Do not
# remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#
set(FILES
../Common/Apple/AzNetworking/Utilities/Endian_Apple.h
../Common/Default/AzNetworking/Utilities/IpAddress_Default.cpp
../Common/UnixLike/AzNetworking/Utilities/NetworkCommon_UnixLike.cpp
../Common/UnixLike/AzNetworking/Utilities/NetworkIncludes_UnixLike.h
AzNetworking/AzNetworking_Traits_Platform.h
AzNetworking/Utilities/Endian_Platform.h
AzNetworking/Utilities/NetworkIncludes_Platform.h
)
@@ -0,0 +1,21 @@
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or the license accompanying this file. Do not
* remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*
*/
#pragma once
#define AZ_TRAIT_OS_USE_WINSOCK 1
#define AZ_TRAIT_OS_USE_MACH 0
#define AZ_TRAIT_USE_SOCKET_SERVER_EPOLL 0
#define AZ_TRAIT_USE_SOCKET_SERVER_SELECT 1
#define AZ_TRAIT_USE_OPENSSL 1
#define AZ_TRAIT_NEEDS_HTONLL 0
@@ -0,0 +1,15 @@
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or the license accompanying this file. Do not
* remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*
*/
#pragma once
#include <WinAPI/AzNetworking/Utilities/Endian_WinAPI.h>
@@ -0,0 +1,15 @@
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or the license accompanying this file. Do not
* remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*
*/
#pragma once
#include <WinAPI/AzNetworking/Utilities/NetworkIncludes_WinAPI.h>
@@ -0,0 +1,15 @@
#
# All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
# its licensors.
#
# For complete copyright and license terms please see the LICENSE at the root of this
# distribution (the "License"). All use of this software is governed by the License,
# or, if provided, by the license below or the license accompanying this file. Do not
# remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#
set(LY_BUILD_DEPENDENCIES
PRIVATE
ws2_32
)
@@ -0,0 +1,20 @@
#
# All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
# its licensors.
#
# For complete copyright and license terms please see the LICENSE at the root of this
# distribution (the "License"). All use of this software is governed by the License,
# or, if provided, by the license below or the license accompanying this file. Do not
# remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#
set(FILES
../Common/Default/AzNetworking/Utilities/IpAddress_Default.cpp
../Common/WinAPI/AzNetworking/Utilities/Endian_WinAPI.h
../Common/WinAPI/AzNetworking/Utilities/NetworkCommon_WinAPI.cpp
../Common/WinAPI/AzNetworking/Utilities/NetworkIncludes_WinAPI.h
AzNetworking/AzNetworking_Traits_Platform.h
AzNetworking/Utilities/Endian_Platform.h
AzNetworking/Utilities/NetworkIncludes_Platform.h
)
@@ -0,0 +1,21 @@
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or the license accompanying this file. Do not
* remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*
*/
#pragma once
#define AZ_TRAIT_OS_USE_WINSOCK 0
#define AZ_TRAIT_OS_USE_MACH 1
#define AZ_TRAIT_USE_SOCKET_SERVER_EPOLL 0
#define AZ_TRAIT_USE_SOCKET_SERVER_SELECT 1
#define AZ_TRAIT_USE_OPENSSL 1
#define AZ_TRAIT_NEEDS_HTONLL 0
@@ -0,0 +1,15 @@
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or the license accompanying this file. Do not
* remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*
*/
#pragma once
#include <Apple/AzNetworking/Utilities/Endian_Apple.h>
@@ -0,0 +1,15 @@
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or the license accompanying this file. Do not
* remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*
*/
#pragma once
#include <UnixLike/AzNetworking/Utilities/NetworkIncludes_UnixLike.h>
@@ -0,0 +1,10 @@
#
# All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
# its licensors.
#
# For complete copyright and license terms please see the LICENSE at the root of this
# distribution (the "License"). All use of this software is governed by the License,
# or, if provided, by the license below or the license accompanying this file. Do not
# remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#
@@ -0,0 +1,20 @@
#
# All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
# its licensors.
#
# For complete copyright and license terms please see the LICENSE at the root of this
# distribution (the "License"). All use of this software is governed by the License,
# or, if provided, by the license below or the license accompanying this file. Do not
# remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#
set(FILES
../Common/Apple/AzNetworking/Utilities/Endian_Apple.h
../Common/Default/AzNetworking/Utilities/IpAddress_Default.cpp
../Common/UnixLike/AzNetworking/Utilities/NetworkCommon_UnixLike.cpp
../Common/UnixLike/AzNetworking/Utilities/NetworkIncludes_UnixLike.h
AzNetworking/AzNetworking_Traits_Platform.h
AzNetworking/Utilities/Endian_Platform.h
AzNetworking/Utilities/NetworkIncludes_Platform.h
)