Setremotetcpaddress method, Setremotetcpport method, Returns – Echelon OpenLDV User Manual
Page 188: Syntax

180
Custom Lookup Extension Component Programming
Table 70. GetRemoteTCPPort Parameters
Parameter
Description
tcpPort
Integer variable that stores the return data.
Returns
The remote TCP port number of the RNI as an Integer.
SetRemoteTCPAddress Method
Applies to: Session Control Object
This method sets the remote TCP address of the RNI. For a downlink session, it
is the responsibility of the xDriver lookup extension to map the downlink lookup
key to the database, extract the TCP address from the database, and fill it into
the SCO using this method.
For an uplink session, the remote TCP address is filled in to the SCO
automatically by the Connection Broker.
Syntax
C++
STDMETHOD(SetRemoteTCPAddress)(BSTR tcpAddress)
Visual Basic Sub SetRemoteTCPAddress(ByVal tcpAddress As String)
Table 71. SetRemoteTCPAddress Parameters
Parameter
Description
tcpAddress
The remote TCP Address used to connect to the
RNI as a dotted decimal IP address, or as a hostname. If an IP
address is used, it must be entered in the form x.x.x.x, where x
represents an integer between 0 and 255.
Returns
Standard COM HRESULT describing the result of the call. Returns
LdvxLib.LdvxResult.E_ACCESSDENIED if the field is currently read-only.
Table 68 on page 178 lists each SCO_TCP field, along with when these fields
are read-only.
SetRemoteTCPPort Method
Applies to: Session Control Object