My problem is following: I am writing a very simple chat server/client with
a userlist. The userlist is stored on server, and each client should send
it's nickname on connect and get the list of currently talking users. So I
have the following OnConnect code:
procedure TfrmClient.CliSocketConnect(Sender: TObject; Socket:
Socket.SendText(sSysTag + ' ' + sCmdGetUList);
Socket.SendText(sSysTag + ' ' + sCmdNick + ' ' + edNick.Text);
btnConnect.Caption := 'Disconnect';
However, the server receives both commands in the single string, like this:
"zsystem getulistzsystem nick Guest"
Eventually my command-recognizing function fails. Is there a way to send
this so server receives 2 different commands, like this:
"zsystem nick Guest"
Thanks in advance,