fpc/packages/fcl-process/examples/ipcclient.pp
2016-02-27 09:21:00 +00:00

20 lines
337 B
ObjectPascal

{$mode objfpc}
{$h+}
program ipcclient;
uses simpleipc;
begin
With TSimpleIPCClient.Create(Nil) do
try
ServerID:='ipcserver';
If (ParamCount>0) then
ServerInstance:=Paramstr(1);
Active:=True;
SendStringMessage('Testmessage from client');
Active:=False;
finally
Free;
end;
end.