Constructor
new PortData(options, portStruct)
Parameters:
| Name | Type | Description | 
|---|---|---|
options | 
            
            Object | Error, warning and debug function references | 
portStruct | 
            
            Object | PortData node to process | 
- Source:
 
Members
(readonly) attrib :Object
    Provides default `attrib` property to ensure node processing, always returns
current meta values
    Type:
- Object
 
- Source:
 
attrib
    Continues node walking recursion through the current attrib node
- Source:
 
conf :Number
    Conf property default
    Type:
- Number
 
- Source:
 
cpe :Array
    CPE property default
    Type:
- Array
 
- Source:
 
(readonly) data :Object
    Returns all processed data, including child data, of the this class
    Type:
- Object
 
- Source:
 
extrainfo :String
    Extra port info property default
    Type:
- String
 
- Source:
 
method :String
    Connection method property default
    Type:
- String
 
- Source:
 
name :String
    Port name property default
    Type:
- String
 
- Source:
 
(readonly) number :Number
    Gets this port's number
    Type:
- Number
 
- Source:
 
openState :String
    Open / close state property default
    Type:
- String
 
- Source:
 
options :Object
    Merge default options with given options
    Type:
- Object
 
- Source:
 
ostype :String
    OS Type property default
    Type:
- String
 
- Source:
 
portid :Number
    Port ID property default
    Type:
- Number
 
- Source:
 
portsUsed :Array
    Ports used property default
    Type:
- Array
 
- Source:
 
product :String
    Product name property default
    Type:
- String
 
- Source:
 
protocol :String
    Port protocol property default
    Type:
- String
 
- Source:
 
reason :String
    Reason property default
    Type:
- String
 
- Source:
 
reason_ttl :Number
    Reason time to live property default
    Type:
- Number
 
- Source:
 
(readonly) script :Array
    Gets the scripts used to test this port
    Type:
- Array
 
- Source:
 
script
    Sets script details, creating script children as needed
- Source:
 
scripts :Array
    Port scripts property default
    Type:
- Array
 
- Source:
 
(readonly) service :Object
    Provides default `service` property to ensure node processing, always returns
current data values
    Type:
- Object
 
- Source:
 
service
    Sets service details, continues node processing
- Source:
 
servicefp :String
    Service FP property default
    Type:
- String
 
- Source:
 
(readonly) state :Object
    Provides default `openState` property to ensure node processing, always returns
current openState values
    Type:
- Object
 
- Source:
 
state
    Sets state based on type of node data
- Source:
 
version :String
    Version property default
    Type:
- String
 
- Source:
 
Methods
parseStruct(curStruct)
    Recursive parsing function, sets the value of this classes properties (if
it exists), or calls the proper processing function, or builds required
child classes for further processing
    Parameters:
| Name | Type | Description | 
|---|---|---|
curStruct | 
            
            Object | Current node being processed | 
- Source: