Difference between revisions of "TCPConnected"
From SCAR Divi Manual
(Created page with "==Definition== <source lang="scar" lines="false"> function TCPConnected(const iTCPClient: Integer): Boolean; </source> ==Availability== SCAR Divi 3.26 > Current ===Aliases=== *...") |
(→See Also) |
||
| Line 32: | Line 32: | ||
*[[TCPConnect]] | *[[TCPConnect]] | ||
*[[TCPFree]] | *[[TCPFree]] | ||
| − | *[[ | + | *[[TCPReceive]] |
| − | *[[ | + | *[[TCPSend]] |
[[Category:Functions]] | [[Category:Functions]] | ||
[[Category:Internet Functions]] | [[Category:Internet Functions]] | ||
[[Category:TCP Functions]] | [[Category:TCP Functions]] | ||
Latest revision as of 10:32, 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.