Pointer to class
Hello, I need interaction between classes and I do it this way:
But it doesnt work, whats wrong there?
cResult = recv(this->sock, (char*)RecPck.buff, 1024, 0);
if (cResult > 0)
RecPck.size = cResult;
RecPck.from = (int*)this;
void tcp_packet_s_handler::read_Login(tcp_packet pck)
c = (con_client*)pck.from;
how do you propose to convert the data in that packet into an address of an instance of your con client class?