TCPConnected

From SCAR Divi Manual
Revision as of 11:32, 4 July 2011 by Freddy (talk | contribs) (See Also)
(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