function ILXStream(options)
{
    options = options || {};
    if (options.handle === undefined) {
        // user created
        if (ILXStreamWrap === null) {
            ILXStreamWrap = process.binding('ILXStreamWrap').ILXStreamWrap;
        }
        options.handle = new ILXStreamWrap();
        net.Socket.call(this, options); // sets this._handle.owner

        // net.socket properties we need to set
        this.writable = false;
        this.connecting = false;
        this.f5 = {};
    }
    else {
        // called from ILXFlow
        assert(options.f5.flow);
        net.Socket.call(this, options); // sets this._handle.owner

        // net.socket properties we need to set
        this.writable = true; // part of a flow, can be read/written now
        this.connecting = false;
        this.f5 = options.f5;
    }

    // callbacks that are invoked from the c++ implementation
    this._handle.onIlxRequestStart = ilxRequestStartCb;
    this._handle.onIlxRequestDone = ilxRequestDoneCb;
    this._handle.onIlxResponseStart = ilxResponseStartCb;
    this._handle.onIlxResponseDone = ilxResponseDoneCb;
    this._handle.onIlxServerConnected = ilxConnectedCb;
    this._handle.onIlxError = ilxErrorCb;
}
/**
 * An ILXStream is a wrapper around a Node.js net.Socket object. All data that goes through the
 * socket goes through the Big IP TMM and not the Linux TCP stack.
 *
 * @constructor
 * @param {object} options    - Options that are passed to the Node.js socket class
 * @param {object} streamWrap - C++ implementation wrapper
 */
An ILXStream is a wrapper around a Node.js net.Socket object. All data that goes through the
socket goes through the Big IP TMM and not the Linux TCP stack.

@constructor
@param {object} options    - Options that are passed to the Node.js socket class
@param {object} streamWrap - C++ implementation wrapper
An ILXStream is a wrapper around a Node . js net . Socket object . All data that goes through the socket goes through the Big IP TMM and not the Linux TCP stack . @constructor @param { object } options - Options that are passed to the Node . js socket class @param { object } streamWrap - C ++ implementation wrapper
function ILXStream(options)
{
    options = options || {};
    if (options.handle === undefined) {
        if (ILXStreamWrap === null) {
            ILXStreamWrap = process.binding('ILXStreamWrap').ILXStreamWrap;
        }
        options.handle = new ILXStreamWrap();
        net.Socket.call(this, options); 
        this.writable = false;
        this.connecting = false;
        this.f5 = {};
    }
    else {
        assert(options.f5.flow);
        net.Socket.call(this, options); 
        this.writable = true; 
        this.connecting = false;
        this.f5 = options.f5;
    }
    this._handle.onIlxRequestStart = ilxRequestStartCb;
    this._handle.onIlxRequestDone = ilxRequestDoneCb;
    this._handle.onIlxResponseStart = ilxResponseStartCb;
    this._handle.onIlxResponseDone = ilxResponseDoneCb;
    this._handle.onIlxServerConnected = ilxConnectedCb;
    this._handle.onIlxError = ilxErrorCb;
}
function ILXStream ( options ) { options = options || { } ; if ( options . handle === undefined ) { if ( ILXStreamWrap === null ) { ILXStreamWrap = process . binding ( 'ILXStreamWrap' ) . ILXStreamWrap ; } options . handle = new ILXStreamWrap ( ) ; net . Socket . call ( this , options ) ; this . writable = false ; this . connecting = false ; this . f5 = { } ; } else { assert ( options . f5 . flow ) ; net . Socket . call ( this , options ) ; this . writable = true ; this . connecting = false ; this . f5 = options . f5 ; } this . _handle . onIlxRequestStart = ilxRequestStartCb ; this . _handle . onIlxRequestDone = ilxRequestDoneCb ; this . _handle . onIlxResponseStart = ilxResponseStartCb ; this . _handle . onIlxResponseDone = ilxResponseDoneCb ; this . _handle . onIlxServerConnected = ilxConnectedCb ; this . _handle . onIlxError = ilxErrorCb ; }
An ILXStream is a wrapper around a Node.js net.Socket object.
An ILXStream is a wrapper around a Node . js net . Socket object .
// user created // sets this._handle.owner // net.socket properties we need to set // called from ILXFlow // sets this._handle.owner // net.socket properties we need to set // part of a flow, can be read/written now // callbacks that are invoked from the c++ implementation