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

void ClientSocket::sendToClient ( int  cmd,
const QString &  inputArg1 = "",
const QString &  inputArg2 = "" 
) [private]

Send datas to client

Parameters:
cmd command
See also:
ClientSocket::command

readClient

core_syntax

Definition at line 195 of file clientsocket.cpp.

References socketConnectionClose().

Referenced by CmdAuthRq(), CmdKillUser(), CmdSendMsg(), CmdSmbRq(), ObjError(), slot_pam(), and slot_smbstatus().

{
      debugQt ("ClientSocket::sendToClient()");
      if (SSL_init==false) return;
      QString MyTxt;
      if (!inputArg1.isEmpty()) MyTxt=addEscapeKeys(inputArg1);
      if (!inputArg2.isEmpty()) MyTxt+=";"+addEscapeKeys(inputArg2);
      Q3CString send_txt = ("["+QString::number(cmd)+"]"+MyTxt+"\n").utf8 () ;
      int value=SSL_write (ssl, send_txt.data() , send_txt.length ());
      if (!value)
      {
            // an error occurred
            SSL_print_error(SSL_get_error(ssl, 0));
            socketConnectionClose();
            return;
      }
      debugQt(send_txt);
}


Generated by  Doxygen 1.6.0   Back to index