Cicode Programming Reference > Cicode Function Categories > Miscellaneous Functions > ServiceGetList

ServiceGetList

Determines the service type(s), cluster name(s), and service name(s) of all services currently running in the component that called this function. It also determines if the client component is running.

If you call this function from a component that is running purely as a Control Client or View-only Client, the function will return "Client".

If you call this function from a single-process component that includes:

The function will return a string similar to:

"IOServer.ClustA.IOServ1,Trend.ClustB.Trend1,Alarm.ClustA.Alarm1,Report.ClustB.Report1,Client"

The order of components in the string is not fixed so the exact string may vary from the above. You should parse the returned string or alternatively use ProcessIsClient or ProcessIsServer to find the information you need.

Syntax

ServiceGetList()

Return Value

String in the form:

serviceType1.clusterName1.serviceName1,serviceType2.clusterName2.serviceName2, ... ,Client

Related Functions

ProcessIsClient, ProcessIsServer, ServerInfo, ServerInfoEx

See Also

Miscellaneous Functions

Published June 2018