Fixing style.
This commit is contained in:
parent
a5eec3d2c5
commit
65c5279611
|
@ -259,14 +259,17 @@ class Win32SocketServer : public SocketServer {
|
|||
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:") +
|
||||
std::to_string(port));
|
||||
while (socket_ != INVALID_SOCKET) {
|
||||
sockaddr_in6 client_addr;
|
||||
int client_count = sizeof(client_addr);
|
||||
SOCKET client_socket = accept(
|
||||
socket_, reinterpret_cast<sockaddr*>(&client_addr), &client_count);
|
||||
SOCKET client_socket =
|
||||
accept(socket_, reinterpret_cast<sockaddr*>(&client_addr),
|
||||
&client_count);
|
||||
if (client_socket == INVALID_SOCKET) {
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue