but I just had to laugh
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user