From 29943a6833e97100f702ce365dccce375e3ec7eb Mon Sep 17 00:00:00 2001 From: Martin Man Date: Fri, 8 Mar 2024 16:13:23 +0100 Subject: [PATCH] blind approach to support IPv6 on Windows --- win32.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/win32.c b/win32.c index c4cf8e8..9a14a40 100644 --- a/win32.c +++ b/win32.c @@ -9,6 +9,7 @@ #include #include #include +#include static enet_uint32 timeBase = 0; @@ -364,10 +365,12 @@ enet_socket_destroy (ENetSocket socket) } int -enet_socket_send (ENetSocket socket, +enet_socket_send (void * context, ENetSocket socket, const ENetAddress * address, const ENetBuffer * buffers, - size_t bufferCount) + size_t bufferCount, + const ENetAddress * sourceAddress, + void * connection) { struct sockaddr_in6 sin; DWORD sentLength = 0; @@ -401,10 +404,12 @@ enet_socket_send (ENetSocket socket, } int -enet_socket_receive (ENetSocket socket, +enet_socket_receive (void * context, ENetSocket socket, ENetAddress * address, ENetBuffer * buffers, - size_t bufferCount) + size_t bufferCount, + const ENetAddress * destinationAddress, + void ** connection) { INT sinLength = sizeof (struct sockaddr_in6); DWORD flags = 0,