Skip to main content

Start server

Starts listening for messages on the specified port

Function StartServer(Val Port, Val PoolSize = 100, Val Logging = Undefined) Export

ParameterCLI optionTypeRequiredDescription
Port-NumberServer port
PoolSize-NumberMaximum number of simultaneously supported connections
Logging-Structure Of KeyAndValueLogging settings. See GetLoggingSettings

Returns: Arbitrary - Server object or match with error information

caution

NOCLI: this method is not available in CLI version


1C:Enterprise/OneScript code example
    Port     = 9876;
PoolSize = 10;

Host = OPI_TCP.StartServer(Port, PoolSize);
Result
"AddIn.OPI_TCPServer.Main"