Cuberite
A lightweight, fast and extensible game server for Minecraft
Classes | Namespaces | Functions
UDPEndpointImpl.cpp File Reference
#include "Globals.h"
#include "UDPEndpointImpl.h"
#include "NetworkSingleton.h"
Include dependency graph for UDPEndpointImpl.cpp:

Go to the source code of this file.

Classes

class  cUDPSendAfterLookup
 A hostname-to-IP resolver callback that sends the data stored within to the resolved IP address. More...
 

Namespaces

 UDPEndpointImplHelper
 

Functions

static void ConvertIPv4ToMappedIPv6 (sockaddr_in &a_SrcAddr, sockaddr_in6 &a_DstAddr)
 Converts a_SrcAddr in IPv4 format to a_DstAddr in IPv6 format (using IPv4-mapped IPv6). More...
 
static bool UDPEndpointImplHelper::IsValidSocket (evutil_socket_t a_Socket)
 

Function Documentation

◆ ConvertIPv4ToMappedIPv6()

static void ConvertIPv4ToMappedIPv6 ( sockaddr_in &  a_SrcAddr,
sockaddr_in6 &  a_DstAddr 
)
static

Converts a_SrcAddr in IPv4 format to a_DstAddr in IPv6 format (using IPv4-mapped IPv6).

Definition at line 34 of file UDPEndpointImpl.cpp.