Xbasic

INET::Socket::Query_TCP Method

Syntax

Result_Flag as L = INET::Socket::Query_TCP( LocalHost as C, LocalPort as N, RemoteHost as C, RemotePort as N, State as N )

Arguments

Result_Flag

TRUE (.T.) if the operation was successful; otherwise FALSE (.F.).

LocalHost

The URL of the local computer.

LocalPort

The port used on the local computer.

RemoteHost

The URL of the remote computer.

RemotePort

The port used on the remote computer.

State

Numeric

Description

The INET::Socket::Query_TCP() method returns .T. if the TCP connection described by the arguments matches an active connection.

See Also