Server.tcpportex, Name, Description – Campbell Scientific LoggerNet Server SDK User Manual

Page 68: Com return values, 2 methods, Server.startserver()

Advertising
background image

Section 14. CsiServer Control Reference

Server.tcpPortEx

Name

Server.tcpPortEx As Long

Description

This property sets the TCP port that the LoggerNet server will use when
listening for client connections and must be set before starting the LoggerNet
server. LoggerNet uses TCP port 6789 by default This property accepts the
full range of valid TCP port numbers 1 – 65535.

COM Return Values

Table of Possible Values

Code Meaning

S_OK

Success: Normal return

14.1.2 Methods

Server.startServer()

Name

Server.startServer()

Description

This method starts the limited LoggerNet server (CORALIB3.DLL). The
CORALIB3.DLL must exist in the application folder, the PATH environmental
variable, or the Windows directory or this method will fail.

COM Return Values

Table of Possible Values

Code Meaning

S_OK

Success: Normal return

E_CSI_ALREADY_STARTED

Error: This error is returned if the
Server control has already started
the LoggerNet server

E_CSI_INVALIDARG

Error: No working directory set

E_CSI_FAIL

Error: Another LoggerNet server
not started by the Server control is
already running or an unexpected
error has occurred

14-4

Advertising