refactor: format code

This commit is contained in:
2021-09-19 17:33:16 +02:00
parent 52a143769e
commit 0856ca47ca
71 changed files with 1102 additions and 1110 deletions

View File

@@ -13,10 +13,10 @@ namespace td {
namespace network {
Socket::Socket(Type type)
: m_Blocking(false),
: m_Blocking(false),
m_Type(type),
m_Status(Disconnected),
m_Handle((SocketHandle) INVALID_SOCKET)
m_Handle((SocketHandle)INVALID_SOCKET)
{
}
@@ -28,9 +28,9 @@ Socket::~Socket() {
bool Socket::SetBlocking(bool block) {
unsigned long mode = block ? 0 : 1;
if(ioctl(m_Handle, FIONBIO, &mode) < 0){
if (ioctl(m_Handle, FIONBIO, &mode) < 0) {
return false;
}
}
m_Blocking = block;