Shoutcast ストリームをリッスンするように QTcpServer をセットアップしました。newConnection() シグナルは、次のように発生します。
connect(tcpServer, SIGNAL(newConnection()), this, SLOT(handleClientComm()));
void IcecastServer::handleClientComm(){
QTcpSocket *clientConnection = tcpServer->nextPendingConnection();
qDebug() << clientConnection->write("HTTP/1.0 200 OK\r\n\r\n" ) << endl;
clientConnection->flush();
}
HTTP 200 を送信するにはどうすればよいですか?