Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Bulk send TCP data to the client with the emulated USB Gecko.
Fixes issue 6006.
  • Loading branch information
skidau committed Feb 17, 2013
1 parent 1792a9d commit 123035a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Source/Core/Core/Src/HW/EXI_DeviceGecko.cpp
Expand Up @@ -134,10 +134,16 @@ void GeckoSockServer::ClientThread()

if (send_fifo.size())
{
if (client.Send((char*)&send_fifo.front(), sizeof(u8))
char* packet = new char[send_fifo.size()];
int i = 0;
while(send_fifo.size())
{
packet[i++] = send_fifo.front();
send_fifo.pop();
}
if (client.Send(packet, sizeof(u8)*i)
== sf::Socket::Disconnected)
client_running = false;
send_fifo.pop();
}
} // unlock transfer

Expand Down

0 comments on commit 123035a

Please sign in to comment.