// Sending answer do { clientSocket->write((char *)&answer,1); } while(!clientSocket->waitForBytesWritten(100)); clientSocket->flush();
C++ (Qt) clientSocket->write((char *)&answer,1);