Serverdirect.tcpportex, Name, Description – Campbell Scientific LoggerNet-SDK Software Development Kit User Manual
Page 68: Com return values, 2 methods, Serverdirect.startserver()

Section 14. CsiServerDirect Control Reference
ServerDirect.tcpPortEx
Name
ServerDirect.tcpPortEx As Long
Description
This property sets the TCP port that the LoggerNet server uses 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
ServerDirect.startServer()
Name
ServerDirect.startServer()
Description
This method starts the limited LoggerNet server (CORALIB3D.DLL). The
CORALIB3D.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
ServerDirect 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 ServerDirect
control is already running or an
unexpected error has occurred
14-4