My code gives me packets loss:
Qt Code:
  1. clientConnection = new QTcpSocket(this);
  2. tcpServer = new QTcpServer();
  3. connect(tcpServer, SIGNAL(newConnection()), this, SLOT(newConnect()));
  4.  
  5. void frmMain::newConnect()
  6. {
  7. clientConnection = tcpServer->nextPendingConnection();
  8.  
  9. connect(clientConnection, SIGNAL(readyRead()),
  10. this, SLOT(receivePkg()));
  11.  
  12. connect(clientConnection, SIGNAL(disconnected()),
  13. clientConnection, SLOT(deleteLater()));
  14. }
  15.  
  16. void frmMain::receivePkg()
  17. {
  18. read_size = clientConnection->read(buf_c, READ_BUF_SIZE);
To copy to clipboard, switch view to plain text mode 

Tell me how to create TCP-server:

-received 10+ packets (1 packet length = 200+ bytes) per 1 ms
-received packets for 10+ min
-without packets loss

May be I have to use another thread and set priority to thread.

Give me server code, please.