[Overview][Resource strings][Constants][Types][Classes][Variables][Index] Reference for unit 'simpleipc' (#fcl)

TIPCServerComm.StartServer

Start the server-side of the communication channel

Declaration

Source position: simpleipc.pp line 95

public procedure TIPCServerComm.StartServer; virtual; abstract;

Description

StartServer sets up the server-side of the communication channel. After StartServer was called, a client can connect to the communication channel, and send messages to the server.

It is called when the TSimpleIPC.Active property of the TSimpleIPCServer instance is set to True.

If Threaded is True then a background thread is started which will check for new messages periodically (see also TSimpleIPCServer.ThreadTimeOut). The arrival of new messages can be acted upon with TSimpleIPCServer.OnMessageQueued.

Errors

In case of an error, an EIPCError exception is raised.

See also

TSimpleIPCServer

  

Simple IPC server component

TSimpleIPC.Active

  

Communication channel active

TSimpleIPCServer.OnMessageQueued

  

Event called when a new message has arrived

TSimpleIPCServer.ThreadTimeOut

  

Timeout waiting for message


Documentation generated on: Sep 28 2017