function createConnection(options)
{
    if (options.ilxStream !== undefined) {
        return options.ilxStream; // connection already created
    }

    var stream = new ILXStream();
    stream.connect(options);
    // note that it is not necessary to handle a stream error event here, see _http_client.js,
    // the socketErrorListener function handles that and also calls socket.destroy().
    return stream;
}
/**
 * Helper function that creates an ILXStream socket to a host using the specified options. For a
 * list of options that the ILXHttpRequest object will use to connect to the host see the
 * ILXStream.connect documentation.
 */
Helper function that creates an ILXStream socket to a host using the specified options. For a
list of options that the ILXHttpRequest object will use to connect to the host see the
ILXStream.connect documentation.
Helper function that creates an ILXStream socket to a host using the specified options . For a list of options that the ILXHttpRequest object will use to connect to the host see the ILXStream . connect documentation .
function createConnection(options)
{
    if (options.ilxStream !== undefined) {
        return options.ilxStream; 
    }
    var stream = new ILXStream();
    stream.connect(options);
    return stream;
}
function createConnection ( options ) { if ( options . ilxStream !== undefined ) { return options . ilxStream ; } var stream = new ILXStream ( ) ; stream . connect ( options ) ; return stream ; }
Helper function that creates an ILXStream socket to a host using the specified options.
Helper function that creates an ILXStream socket to a host using the specified options .
// connection already created // note that it is not necessary to handle a stream error event here, see _http_client.js, // the socketErrorListener function handles that and also calls socket.destroy().