TCPConnected

From SCAR Divi Manual
Revision as of 10:11, 4 July 2011 by Freddy (talk | contribs) (Created page with "==Definition== <source lang="scar" lines="false"> function TCPConnected(const iTCPClient: Integer): Boolean; </source> ==Availability== SCAR Divi 3.26 > Current ===Aliases=== *...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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