mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 13:57:57 -07:00
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:
parent
466eb88ee6
commit
86339310a5
@ -76,11 +76,12 @@ bool ServerSide::RecvT(sf::SocketUDP Socket, char * Data, size_t Max, size_t& Re
|
|||||||
{
|
{
|
||||||
sf::SelectorUDP Selector;
|
sf::SelectorUDP Selector;
|
||||||
sf::IPAddress Addr;
|
sf::IPAddress Addr;
|
||||||
|
unsigned short Port;
|
||||||
Selector.Add(Socket);
|
Selector.Add(Socket);
|
||||||
|
|
||||||
if (Selector.Wait(Time) > 0)
|
if (Selector.Wait(Time) > 0)
|
||||||
{
|
{
|
||||||
Socket.Receive(Data, Max, Recvd, Addr);
|
Socket.Receive(Data, Max, Recvd, Addr, Port);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
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)
|
bool ClientSide::RecvT(sf::SocketUDP Socket, char * Data, size_t Max, size_t& Recvd, float Time)
|
||||||
{
|
{
|
||||||
sf::SelectorUDP Selector;
|
sf::SelectorUDP Selector;
|
||||||
sf::IPAddress addr;
|
sf::IPAddress Addr;
|
||||||
|
unsigned short Port;
|
||||||
Selector.Add(Socket);
|
Selector.Add(Socket);
|
||||||
|
|
||||||
if (Selector.Wait(Time) > 0)
|
if (Selector.Wait(Time) > 0)
|
||||||
{
|
{
|
||||||
Socket.Receive(Data, Max, Recvd, addr);
|
Socket.Receive(Data, Max, Recvd, Addr, Port);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user