Start server
Starts listening for messages on the specified port
- Parameters
- Advanced call ?
Function StartServer(Val Port, Val PoolSize = 100, Val Logging = Undefined) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| Port | - | Number | ✔ | Server port |
| PoolSize | - | Number | ✖ | Maximum number of simultaneously supported connections |
| Logging | - | Structure Of KeyAndValue | ✖ | Logging settings. See GetLoggingSettings |
Returns
Arbitrary - Server object or match with error information
This method has no additional advanced call parameters.
Caution
NOCLI: this method is not available in CLI version
1C:Enterprise/OneScript code example
Port = 9876;
PoolSize = 10;
Result = OPI_TCP.StartServer(Port, PoolSize);
Result
"AddIn.OPI_TCPServer.Main"