Fixing style.

This commit is contained in:
Ben Vanik 2015-11-05 16:39:27 -08:00
parent a5eec3d2c5
commit 65c5279611
1 changed files with 22 additions and 19 deletions

View File

@ -259,14 +259,17 @@ class Win32SocketServer : public SocketServer {
return false; return false;
} }
accept_thread_ = xe::threading::Thread::Create({}, [this, port]() { accept_thread_ = xe::threading::Thread::Create(
{},
[this, port]() {
xe::threading::set_name(std::string("xe::SocketServer localhost:") + xe::threading::set_name(std::string("xe::SocketServer localhost:") +
std::to_string(port)); std::to_string(port));
while (socket_ != INVALID_SOCKET) { while (socket_ != INVALID_SOCKET) {
sockaddr_in6 client_addr; sockaddr_in6 client_addr;
int client_count = sizeof(client_addr); int client_count = sizeof(client_addr);
SOCKET client_socket = accept( SOCKET client_socket =
socket_, reinterpret_cast<sockaddr*>(&client_addr), &client_count); accept(socket_, reinterpret_cast<sockaddr*>(&client_addr),
&client_count);
if (client_socket == INVALID_SOCKET) { if (client_socket == INVALID_SOCKET) {
continue; continue;
} }