Constructor
new Os(options, osStruct)
Parameters:
Name | Type | Description |
---|---|---|
options |
Object | Error, warning and debug function references |
osStruct |
Object | Os 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:
(readonly) data :Object
Returns all processed data, including child data, of the this class
Type:
- Object
- Source:
match
Gets the most likely OS name
- Source:
options :Object
Merge default options with given options
Type:
- Object
- Source:
(readonly) osmatch :Array
Provides default `osMatchs` property to ensure node processing, always returns
current osMatchs values
Type:
- Array
- Source:
osmatch
Adds any os matches to the `osMatchs` array
- Source:
osMatchs :Array
OS Matches property default
Type:
- Array
- Source:
portsUsed :Array
Checked ports property default
Type:
- Array
- Source:
(readonly) portused :Array
Provides default `portsUsed` property to ensure node processing, always returns
current portsUsed values
Type:
- Array
- Source:
portused
Adds any ports used to the `portsUsed` array
- 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: