RPC HELP TRPCBroker Connected Example

From VistApedia
Jump to: navigation, search

Connected Example

The following program code sets the Connected property to True:


   procedure TForm1.btnConnectClick(Sender: TObject);
   begin
     brkrRPCBroker1.Server := edtServer.Text;
     brkrRPCBroker1.ListenerPort := StrToInt(edtPort.Text);
     brkrRPCBroker1.Connected := True;
   end;

The Server and ListenerPort properties must be set at design or run-time before setting the Connected property to True.