C++ (Qt)void Q_Client::NewData(void){ qm_sock->read(buffer,size); if (current < maxAttemprs) { qm_sock->write(forSend,size); }
if(connect(sock,(struct sockaddr*)&sockaddr;,sizeof(sockaddr))<0)... if (bind(srv,(const sockaddr*)&srv;_addr,sizeof(srv_addr)) < 0 )... client = accept(srv, (struct sockaddr*)&client;_addr,&clientLen;);