/
ColdC/Functions/
ColdC/Structure/
<head><title>ColdC: Function/Method Reference: connection()</title></head>

<body>

<h1 align=center><a href="/ColdC/">ColdC</a>: <a href="/ColdC/Functions/">Function/Method Reference</a>: connection()</h1>

<hr>

<p>
<font size=+1><i>LIST</i> <b>connection</b>()</font>

<p>This function returns a list of information on the current connection.
If no connection exists, <code>~net</code> is thrown.  The list is ordered
as:

<ol>
<li>INTEGER boolean (true if the connection is readable)
<li>INTEGER boolean (true if the connection is writable)
<li>INTEGER boolean (true if the connection is dead)
<li>INTEGER file descriptor
</ol>

<p>Most of this information is useful only for debugging, as it can change
immediately (all but the file descriptor).  This function is useful for
determining if the current object has a valid connection.

<p><hr size=4><p align=center><i>Last Modified on Mar 2 1996</i>
<br><i>Copyright &copy; 1995, 1996, Brandon Gillespie</i>
</body>