forgot a file from last commit

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3595 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Shawn Hoffman 2009-06-29 15:54:04 +00:00
parent 466eb88ee6
commit 86339310a5
1 changed files with 5 additions and 3 deletions

View File

@ -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