Logo Search packages:      
Sourcecode: qtsmbstatus version File versions  Download package

void ClientSocket::readClient (  )  [private, slot]

Receive datas from client

See also:
sendToClient

Definition at line 154 of file clientsocket.cpp.

References AuthUser, core(), socketConnectionClose(), and TimoutTimerEcho.

{
      debugQt ("ClientSocket::readClient()");
      if (SSL_init==false) return;
      if (!socketdevice->isOpen()) //if not connected
      {
            socketConnectionClose();
            return;
      }
      Q3CString rcvtxt;
      rcvtxt.resize(16384);
      int ret = SSL_read(ssl, rcvtxt.data(), rcvtxt.size());
      if (ret <=0 )
      {
            // an error occurred
            SSL_print_error(SSL_get_error(ssl, ret));
            socketConnectionClose();
            return;
      }


      if (AuthUser)  // if client authenticated
      {
            // reset echo timer because client has sent data
            echo=0;
            echo_timer->stop();
            echo_timer->start( TimoutTimerEcho, FALSE );
      }

      rcvtxt.resize(ret);  // Sets the size of the byte array to size bytes
      debugQt (rcvtxt);
      core ( rcvtxt );
}


Generated by  Doxygen 1.6.0   Back to index