I do not have much familiarity with Delphi 2010 and am having trouble with using components ClientSocket and ServerSocket. The question is simple: I am trying to send a text from a client to a server using the following code:
cliente.Socket.SendText('call');
On the server side I writed the following code:
procedure TForm6.ServerClientRead(Sender: TObject; Socket: TCustomWinSocket);
var
s: string;
begin
s:=Socket.ReceiveText;
if s = 'call' then
begin
showmessage('Client is Calling');
end;
end;
However, the server dont displaying the message. Could help me once more?