Sign in Join
FPDoc Onlineexperiment

TSimpleIPCServer.StartServer procedure

Member of TSimpleIPCServerpublicIn unit SimpleIPC

Start the server.

Declaration

pascal
procedure StartServer
procedure StartServer(AThreaded: Boolean)

Arguments

AThreaded

Should the server run threaded ?

Description

StartServer starts the server side of the communication channel. It is called automatically when the Active property is set to True. It creates the internal communication object (a TIPCServerComm descendent) and activates the communication channel.

The aThreaded property can be used to force or disable threaded mode: in threaded mode, a thread is started that automatically checks for new messages and puts them on a queue. If the argument is not specified, then the property Threaded is examined to know whether to start in threaded mode or not.

After this method was called, clients can connect and send messages.

Prior to calling this method, the ServerID property must be set.

Errors

If an error occurs a EIPCError exception may be raised.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.