SQC-15_online #1
| @@ -62,6 +62,13 @@ int Connector::Connect(const char* srv_addr, std::string name) { | |||||||
| 		return 3; | 		return 3; | ||||||
| 	} | 	} | ||||||
| 	*/ | 	*/ | ||||||
|  |  | ||||||
|  | 	u_long flag = 1; | ||||||
|  | 	if (ioctlsocket(m_sock_tcp, FIONBIO, &flag) < 0) { | ||||||
|  | 		std::cout << "Impossible de mettre le socket en mode non-bloquant." << std::endl; | ||||||
|  | 		return 3; | ||||||
|  | 	} | ||||||
|  |  | ||||||
| 	netprot::Buffer bf; | 	netprot::Buffer bf; | ||||||
| 	netprot::LoginInfo log; | 	netprot::LoginInfo log; | ||||||
| 	strcpy(log.name, name.c_str()); | 	strcpy(log.name, name.c_str()); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user