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

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

Send data to server.

Parameters:
cmd command
See also:
ClientSocket::command

ClientSSL core_syntax

Definition at line 381 of file clientsocket.cpp.

References ClientSSL::sendToServer().

Referenced by core(), Disconnect(), slot_echo_timer(), slot_timer(), slotDisconnectUser(), slotSendMessage(), slotSendMessageAllUsers(), and socketconnected().

{
      debugQt("ClientSocket::sendToServer()");
      if (!ssl_connected) return; // if deconnected
      QString MyTxt;
      if (!inputArg1.isEmpty()) MyTxt=addEscapeKeys(inputArg1);
      if (!inputArg2.isEmpty()) MyTxt+=";"+addEscapeKeys(inputArg2);
      socketclient->sendToServer("["+QString::number(cmd)+"]"+MyTxt+"\n");
}


Generated by  Doxygen 1.6.0   Back to index