Difference between revisions of "TCPConnected"

From SCAR Divi Manual
Jump to: navigation, search
(Created page with "==Definition== <source lang="scar" lines="false"> function TCPConnected(const iTCPClient: Integer): Boolean; </source> ==Availability== SCAR Divi 3.26 > Current ===Aliases=== *...")
(No difference)

Revision as of 10:11, 4 July 2011

Definition

function TCPConnected(const iTCPClient: Integer): Boolean;

Availability

SCAR Divi 3.26 > Current

Aliases

  • IsConnectionOpen (SCAR Divi 3.00 > Current)

Description

Returns true if a TCP connection is associated with the index iTCPClient in the TCP client resource manager and is still connected.

Example

var
  i: Integer;

begin
  i := TCPConnect('irc.scar-divi.com', 6667, 1000);
  try
    WriteLn(TCPConnected(i));
  finally
    TCPFree(i);
  end;
  WriteLn(TCPConnected(i));
end.

See Also