<head><title>ColdC: Function/Method Reference: open_connection()</title></head> <body> <h1 align=center><a href="/ColdC/">ColdC</a>: <a href="/ColdC/Functions/">Function/Method Reference</a>: open_connection()</h1> <hr> <p> <font size=+1><i>INTEGER</i> <b>open_connection</b>(<i>STRING <b>host</b>, INTEGER <b>port</b></i>)</font> <p>This function opens a connection to <var>host</var> at port <var>port</var>, on the current object. If the host address <var>host</var> is invalid, the error <code>~address</code> is thrown. If the socket could not be established, <code>~socket</code> is thrown. For more information, see the section on <a href="/ColdC/networking.html">Networking</a>. <p><hr size=4><p align=center><i>Last Modified on Mar 2 1996</i> <br><i>Copyright © 1995, 1996, Brandon Gillespie</i> </body>