From 86339310a521650863bb7796d8fa1f15da466804 Mon Sep 17 00:00:00 2001 From: Shawn Hoffman Date: Mon, 29 Jun 2009 15:54:04 +0000 Subject: [PATCH] forgot a file from last commit git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3595 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/DolphinWX/Src/NetSockets.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Source/Core/DolphinWX/Src/NetSockets.cpp b/Source/Core/DolphinWX/Src/NetSockets.cpp index 2c96dae131..4889eab66d 100644 --- a/Source/Core/DolphinWX/Src/NetSockets.cpp +++ b/Source/Core/DolphinWX/Src/NetSockets.cpp @@ -76,11 +76,12 @@ bool ServerSide::RecvT(sf::SocketUDP Socket, char * Data, size_t Max, size_t& Re { sf::SelectorUDP Selector; sf::IPAddress Addr; + unsigned short Port; Selector.Add(Socket); if (Selector.Wait(Time) > 0) { - Socket.Receive(Data, Max, Recvd, Addr); + Socket.Receive(Data, Max, Recvd, Addr, Port); return true; } else @@ -374,12 +375,13 @@ ClientSide::ClientSide(NetPlay* netptr, sf::SocketTCP socket, sf::SocketUDP sock bool ClientSide::RecvT(sf::SocketUDP Socket, char * Data, size_t Max, size_t& Recvd, float Time) { sf::SelectorUDP Selector; - sf::IPAddress addr; + sf::IPAddress Addr; + unsigned short Port; Selector.Add(Socket); if (Selector.Wait(Time) > 0) { - Socket.Receive(Data, Max, Recvd, addr); + Socket.Receive(Data, Max, Recvd, Addr, Port); return true; } else