but I just had to laugh

This commit is contained in:
MarcEricMartel
2023-10-28 12:13:45 -04:00
parent a69e716105
commit 10fcfed05a
4 changed files with 8 additions and 11 deletions

View File

@@ -57,14 +57,14 @@ int Connector::Connect(const char* srv_addr, std::string name) {
return 2;
}
if (ioctlsocket(m_sock_tcp, FIONBIO, NULL) < 0) {
if (ioctlsocket(m_sock_tcp, FIONBIO, nullptr) < 0) {
std::cout << "Impossible de mettre le socket en mode non-bloquant." << std::endl;
return 3;
}
netprot::Buffer bf;
netprot::LoginInfo log;
strcpy_s(log.name, name.c_str());
strcpy(log.name, name.c_str());
netprot::sendPack(m_sock_tcp, &log, &bf);