Method ITcIoTcpProtocol:Connect

Establishes a connection to a remote terminal.

Syntax

HRESULT TCOMAPI Connect(ULONG socketId, ULONG ipRemoteAddress, USHORT tcpPort) 

Method ITcIoTcpProtocol:Connect 1: Return value

Type

Description

HRESULT

Indicates success, see Return values.

Parameter

Name

Type

Description

socketId

ULONG

The socket to be used.

ipRemoteAddress

ULONG

IP address of the remote terminal to be contacted.
IP addresses are displayed with the most significant element in the last position. (Example: 192.168.2.1 -> 01 02 A8 C0)

tcpPort

USHORT

Port of the remote terminal to be contacted.