itoolkit 1.0.0-rc.1 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/.eslintrc.js +37 -11
  2. package/CHANGELOG.md +76 -2
  3. package/README.md +8 -8
  4. package/lib/Connection.js +0 -1
  5. package/lib/Deprecated.js +3 -4
  6. package/lib/ProgramCall.js +2 -2
  7. package/lib/transports/httpTransport.js +2 -2
  8. package/lib/transports/idbTransport.js +23 -11
  9. package/lib/transports/odbcTransport.js +16 -2
  10. package/lib/transports/sshTransport.js +4 -5
  11. package/package.json +15 -14
  12. package/test/README.md +2 -4
  13. package/test/functional/CommandCallFunctional.js +20 -12
  14. package/test/functional/ProgramCallFunctional.js +6 -66
  15. package/test/functional/checkObjectExists.js +12 -1
  16. package/test/functional/checkVersion.js +17 -0
  17. package/test/functional/deprecated/commandsFunctional.js +20 -11
  18. package/test/functional/deprecated/iDataQueueFunctional.js +10 -11
  19. package/test/functional/deprecated/iNetworkFunctional.js +8 -9
  20. package/test/functional/deprecated/iObjFunctional.js +18 -19
  21. package/test/functional/deprecated/iPgmFunctional.js +6 -42
  22. package/test/functional/deprecated/iProdFunctional.js +10 -11
  23. package/test/functional/deprecated/iSqlFunctional.js +30 -32
  24. package/test/functional/deprecated/iUserSpaceFunctional.js +29 -18
  25. package/test/functional/deprecated/iWorkFunctional.js +61 -59
  26. package/test/functional/iDataQueueFunctional.js +8 -9
  27. package/test/functional/iNetworkFunctional.js +6 -8
  28. package/test/functional/iObjFunctional.js +16 -17
  29. package/test/functional/iProdFunctional.js +8 -9
  30. package/test/functional/iSqlFunctional.js +30 -31
  31. package/test/functional/iUserSpaceFunctional.js +27 -16
  32. package/test/functional/iWorkFunctional.js +29 -33
  33. package/test/unit/CommandCallUnit.js +10 -11
  34. package/test/unit/ConnectionUnit.js +12 -19
  35. package/test/unit/ProgamCallUnit.js +27 -25
  36. package/test/unit/deprecated/commandsUnit.js +10 -11
  37. package/test/unit/deprecated/iConnUnit.js +12 -16
  38. package/test/unit/deprecated/iPgmUnit.js +25 -21
  39. package/test/unit/deprecated/iSqlUnit.js +69 -70
  40. package/test/unit/deprecated/xmlToJsonUnit.js +6 -9
  41. package/docs/CommandCall.rst +0 -22
  42. package/docs/Connection.rst +0 -133
  43. package/docs/Makefile +0 -20
  44. package/docs/ProgramCall.rst +0 -30
  45. package/docs/conf.py +0 -63
  46. package/docs/deprecated/examples/addQuery.js +0 -27
  47. package/docs/deprecated/examples/addToLibraryList.js +0 -15
  48. package/docs/deprecated/examples/callProcedure.js +0 -28
  49. package/docs/deprecated/examples/clearDataQueue.js +0 -15
  50. package/docs/deprecated/examples/createUserSpace.js +0 -15
  51. package/docs/deprecated/examples/deleteUserSpace.js +0 -15
  52. package/docs/deprecated/examples/getDataArea.js +0 -15
  53. package/docs/deprecated/examples/getInstalledProducts.js +0 -15
  54. package/docs/deprecated/examples/getJobInfo.js +0 -15
  55. package/docs/deprecated/examples/getJobStatus.js +0 -15
  56. package/docs/deprecated/examples/getNetInterfaceData.js +0 -15
  57. package/docs/deprecated/examples/getPTFInfo.js +0 -15
  58. package/docs/deprecated/examples/getProductInfo.js +0 -15
  59. package/docs/deprecated/examples/getSysStatus.js +0 -15
  60. package/docs/deprecated/examples/getSysStatusExt.js +0 -15
  61. package/docs/deprecated/examples/getSysValue.js +0 -15
  62. package/docs/deprecated/examples/getTCPIPAttr.js +0 -15
  63. package/docs/deprecated/examples/getUserSpaceData.js +0 -15
  64. package/docs/deprecated/examples/receiveFromDataQueue.js +0 -15
  65. package/docs/deprecated/examples/retrCmdInfo.js +0 -15
  66. package/docs/deprecated/examples/retrPgmInfo.js +0 -15
  67. package/docs/deprecated/examples/retrSrvPgmInfo.js +0 -16
  68. package/docs/deprecated/examples/retrUserAuthToObj.js +0 -15
  69. package/docs/deprecated/examples/retrUserInfo.js +0 -15
  70. package/docs/deprecated/examples/retrUsrAuth.js +0 -15
  71. package/docs/deprecated/examples/sendToDataQueue.js +0 -15
  72. package/docs/deprecated/examples/setUserSpaceData.js +0 -15
  73. package/docs/deprecated/iCmd.rst +0 -7
  74. package/docs/deprecated/iConn.rst +0 -9
  75. package/docs/deprecated/iDataQueue.rst +0 -33
  76. package/docs/deprecated/iNetwork.rst +0 -27
  77. package/docs/deprecated/iObj.rst +0 -64
  78. package/docs/deprecated/iPgm.rst +0 -9
  79. package/docs/deprecated/iProd.rst +0 -36
  80. package/docs/deprecated/iQsh.rst +0 -7
  81. package/docs/deprecated/iSh.rst +0 -7
  82. package/docs/deprecated/iSql.rst +0 -30
  83. package/docs/deprecated/iUserSpace.rst +0 -38
  84. package/docs/deprecated/iWork.rst +0 -58
  85. package/docs/deprecated.rst +0 -21
  86. package/docs/examples/cosine.js +0 -27
  87. package/docs/examples/qusrobjd.js +0 -80
  88. package/docs/examples/rtvjoba.js +0 -24
  89. package/docs/features.rst +0 -12
  90. package/docs/index.rst +0 -71
  91. package/docs/migratation-guide-v1.0.rst +0 -325
  92. package/docs/requirements.txt +0 -1
package/docs/Makefile DELETED
@@ -1,20 +0,0 @@
1
- # Minimal makefile for Sphinx documentation
2
- #
3
-
4
- # You can set these variables from the command line, and also
5
- # from the environment for the first two.
6
- SPHINXOPTS ?=
7
- SPHINXBUILD ?= sphinx-build
8
- SOURCEDIR = .
9
- BUILDDIR = _build
10
-
11
- # Put it first so that "make" without argument is like "make help".
12
- help:
13
- @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14
-
15
- .PHONY: help Makefile
16
-
17
- # Catch-all target: route all unknown targets to Sphinx using the new
18
- # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19
- %: Makefile
20
- @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
@@ -1,30 +0,0 @@
1
- .. _ProgramCall:
2
-
3
- Calling a Program or Service Program
4
- ------------------------------------
5
-
6
- ProgramCall API
7
- ^^^^^^^^^^^^^^^
8
- .. autoclass:: ProgramCall
9
- :members:
10
-
11
- .. autofunction:: programCallConfig
12
- .. autofunction:: parameterConfig
13
- .. autofunction:: returnConfig
14
- .. autofunction:: data
15
-
16
- Examples
17
- ^^^^^^^^
18
-
19
- Call the QUSROBJD Program
20
- """""""""""""""""""""""""
21
-
22
- .. literalinclude:: examples/qusrobjd.js
23
- :language: javascript
24
-
25
- Retrieve the Return Value From a Service Program
26
- """"""""""""""""""""""""""""""""""""""""""""""""
27
-
28
- .. literalinclude:: examples/cosine.js
29
- :language: javascript
30
-
package/docs/conf.py DELETED
@@ -1,63 +0,0 @@
1
- # Configuration file for the Sphinx documentation builder.
2
- #
3
- # This file only contains a selection of the most common options. For a full
4
- # list see the documentation:
5
- # https://www.sphinx-doc.org/en/master/usage/configuration.html
6
-
7
- # -- Path setup --------------------------------------------------------------
8
-
9
- # If extensions (or modules to document with autodoc) are in another directory,
10
- # add these directories to sys.path here. If the directory is relative to the
11
- # documentation root, use os.path.abspath to make it absolute, like shown here.
12
- #
13
- # import os
14
- # import sys
15
- # sys.path.insert(0, os.path.abspath('.'))
16
- import json
17
-
18
- js_source_path = '../lib'
19
- primary_domain = 'js'
20
-
21
- # -- Project information -----------------------------------------------------
22
-
23
- project = 'nodejs-itoolkit'
24
- copyright = '2020, IBM'
25
- author = 'IBM'
26
-
27
- # The full version, including alpha/beta/rc tags
28
- # read the version from package.json
29
- with open('../package.json', 'r') as read_file:
30
- package = json.load(read_file)
31
- release = package['version']
32
-
33
- # -- General configuration ---------------------------------------------------
34
-
35
- # Add any Sphinx extension module names here, as strings. They can be
36
- # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
37
- # ones.
38
- extensions = [
39
- 'sphinx_js',
40
- ]
41
-
42
- # Add any paths that contain templates here, relative to this directory.
43
- templates_path = ['_templates']
44
-
45
- # The master toctree document.
46
- master_doc = 'index'
47
-
48
- # List of patterns, relative to source directory, that match files and
49
- # directories to ignore when looking for source files.
50
- # This pattern also affects html_static_path and html_extra_path.
51
- exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
52
-
53
- # -- Options for HTML output -------------------------------------------------
54
-
55
- # The theme to use for HTML and HTML Help pages. See the documentation for
56
- # a list of builtin themes.
57
- #
58
- html_theme = 'sphinx_rtd_theme'
59
-
60
- # Add any paths that contain custom static files (such as style sheets) here,
61
- # relative to this directory. They are copied after the builtin static files,
62
- # so a file named "default.css" will overwrite the builtin "default.css".
63
- html_static_path = ['_static']
@@ -1,27 +0,0 @@
1
- const { Connection, iSql } = require('itoolkit');
2
- const { parseString } = require('xml2js');
3
-
4
- const connection = new Connection({
5
- transport: 'ssh',
6
- transportOptions: { host: 'myhost', username: 'myuser', password: 'mypassword' },
7
- });
8
-
9
- const sql = new iSql();
10
-
11
- sql.addQuery('SELECT LSTNAM, STATE FROM QIWS.QCUSTCDT');
12
- sql.fetch();
13
- sql.free();
14
-
15
- connection.add(sql);
16
-
17
- connection.run((error, xmlOutput) => {
18
- if (error) {
19
- throw error;
20
- }
21
- parseString(xmlOutput, (parseError, result) => {
22
- if (parseError) {
23
- throw parseError;
24
- }
25
- console.log(JSON.stringify(result));
26
- });
27
- });
@@ -1,15 +0,0 @@
1
- const { Connection, iObj } = require('itoolkit');
2
-
3
- const connection = new Connection({
4
- transport: 'ssh',
5
- transportOptions: { host: 'myhost', username: 'myuser', password: 'mypassword' },
6
- });
7
-
8
- const obj = new iObj(connection);
9
-
10
- obj.addToLibraryList('QHTTPSVR', (error, output) => {
11
- if (error) {
12
- throw error;
13
- }
14
- console.log(output);
15
- });
@@ -1,28 +0,0 @@
1
- const { Connection, iSql } = require('itoolkit');
2
- const { parseString } = require('xml2js');
3
-
4
- const connection = new Connection({
5
- transport: 'ssh',
6
- transportOptions: { host: 'myhost', username: 'myuser', password: 'mypassword' },
7
- });
8
-
9
- const sql = new iSql();
10
-
11
- sql.prepare('call qsys2.tcpip_info()');
12
- sql.execute();
13
- sql.fetch();
14
- sql.free();
15
-
16
- connection.add(sql);
17
-
18
- connection.run((error, xmlOutput) => {
19
- if (error) {
20
- throw error;
21
- }
22
- parseString(xmlOutput, (parseError, result) => {
23
- if (parseError) {
24
- throw parseError;
25
- }
26
- console.log(JSON.stringify(result));
27
- });
28
- });
@@ -1,15 +0,0 @@
1
- const { Connection, iDataQueue } = require('itoolkit');
2
-
3
- const connection = new Connection({
4
- transport: 'ssh',
5
- transportOptions: { host: 'myhost', username: 'myuser', password: 'mypassword' },
6
- });
7
-
8
- const dq = new iDataQueue(connection);
9
-
10
- dq.clearDataQueue('mydq', 'mylib', (error, output) => {
11
- if (error) {
12
- throw error;
13
- }
14
- console.log(output);
15
- });
@@ -1,15 +0,0 @@
1
- const { Connection, iUserSpace } = require('itoolkit');
2
-
3
- const connection = new Connection({
4
- transport: 'ssh',
5
- transportOptions: { host: 'myhost', username: 'myuser', password: 'mypassword' },
6
- });
7
-
8
- const userSpace = new iUserSpace(connection);
9
-
10
- userSpace.createUserSpace('myuserspace', 'mylib', 'LOG', 50, 'EXCLUDE', 'Example User Space', (error, output) => {
11
- if (error) {
12
- throw error;
13
- }
14
- console.log(output);
15
- });
@@ -1,15 +0,0 @@
1
- const { Connection, iUserSpace } = require('itoolkit');
2
-
3
- const connection = new Connection({
4
- transport: 'ssh',
5
- transportOptions: { host: 'myhost', username: 'myuser', password: 'mypassword' },
6
- });
7
-
8
- const userSpace = new iUserSpace(connection);
9
-
10
- userSpace.deleteUserSpace('myuserspace', 'mylib', (error, output) => {
11
- if (error) {
12
- throw error;
13
- }
14
- console.log(output);
15
- });
@@ -1,15 +0,0 @@
1
- const { Connection, iWork } = require('itoolkit');
2
-
3
- const connection = new Connection({
4
- transport: 'ssh',
5
- transportOptions: { host: 'myhost', username: 'myuser', password: 'mypassword' },
6
- });
7
-
8
- const work = new iWork(connection);
9
-
10
- work.getDataArea('mylibrary', 'mydataarea', 100, (error, output) => {
11
- if (error) {
12
- throw error;
13
- }
14
- console.log(output);
15
- });
@@ -1,15 +0,0 @@
1
- const { Connection, iProd } = require('itoolkit');
2
-
3
- const connection = new Connection({
4
- transport: 'ssh',
5
- transportOptions: { host: 'myhost', username: 'myuser', password: 'mypassword' },
6
- });
7
-
8
- const prod = new iProd(connection);
9
-
10
- prod.getInstalledProducts((error, output) => {
11
- if (error) {
12
- throw error;
13
- }
14
- console.log(output);
15
- });
@@ -1,15 +0,0 @@
1
- const { Connection, iWork } = require('itoolkit');
2
-
3
- const connection = new Connection({
4
- transport: 'ssh',
5
- transportOptions: { host: 'myhost', username: 'myuser', password: 'mypassword' },
6
- });
7
-
8
- const work = new iWork(connection);
9
-
10
- work.getJobInfo('jobname', 'user', 'jobnumber', (error, output) => {
11
- if (error) {
12
- throw error;
13
- }
14
- console.log(output);
15
- });
@@ -1,15 +0,0 @@
1
- const { Connection, iWork } = require('itoolkit');
2
-
3
- const connection = new Connection({
4
- transport: 'ssh',
5
- transportOptions: { host: 'myhost', username: 'myuser', password: 'mypassword' },
6
- });
7
-
8
- const work = new iWork(connection);
9
-
10
- work.getJobStatus('jobid', (error, output) => {
11
- if (error) {
12
- throw error;
13
- }
14
- console.log(output);
15
- });
@@ -1,15 +0,0 @@
1
- const { Connection, iNetwork } = require('itoolkit');
2
-
3
- const connection = new Connection({
4
- transport: 'ssh',
5
- transportOptions: { host: 'myhost', username: 'myuser', password: 'mypassword' },
6
- });
7
-
8
- const net = new iNetwork(connection);
9
-
10
- net.getNetInterfaceData('127.0.0.1', (error, output) => {
11
- if (error) {
12
- throw error;
13
- }
14
- console.log(output);
15
- });
@@ -1,15 +0,0 @@
1
- const { Connection, iProd } = require('itoolkit');
2
-
3
- const connection = new Connection({
4
- transport: 'ssh',
5
- transportOptions: { host: 'myhost', username: 'myuser', password: 'mypassword' },
6
- });
7
-
8
- const prod = new iProd(connection);
9
-
10
- prod.getPTFInfo('SI54708', (error, output) => {
11
- if (error) {
12
- throw error;
13
- }
14
- console.log(output);
15
- });
@@ -1,15 +0,0 @@
1
- const { Connection, iProd } = require('itoolkit');
2
-
3
- const connection = new Connection({
4
- transport: 'ssh',
5
- transportOptions: { host: 'myhost', username: 'myuser', password: 'mypassword' },
6
- });
7
-
8
- const prod = new iProd(connection);
9
-
10
- prod.getProductInfo('5770DG1', (error, output) => {
11
- if (error) {
12
- throw error;
13
- }
14
- console.log(output);
15
- });
@@ -1,15 +0,0 @@
1
- const { Connection, iWork } = require('itoolkit');
2
-
3
- const connection = new Connection({
4
- transport: 'ssh',
5
- transportOptions: { host: 'myhost', username: 'myuser', password: 'mypassword' },
6
- });
7
-
8
- const work = new iWork(connection);
9
-
10
- work.getSysStatus((error, output) => {
11
- if (error) {
12
- throw error;
13
- }
14
- console.log((output));
15
- });
@@ -1,15 +0,0 @@
1
- const { Connection, iWork } = require('itoolkit');
2
-
3
- const connection = new Connection({
4
- transport: 'ssh',
5
- transportOptions: { host: 'myhost', username: 'myuser', password: 'mypassword' },
6
- });
7
-
8
- const work = new iWork(connection);
9
-
10
- work.getSysStatusExt((error, output) => {
11
- if (error) {
12
- throw error;
13
- }
14
- console.log(output);
15
- });
@@ -1,15 +0,0 @@
1
- const { Connection, iWork } = require('itoolkit');
2
-
3
- const connection = new Connection({
4
- transport: 'ssh',
5
- transportOptions: { host: 'myhost', username: 'myuser', password: 'mypassword' },
6
- });
7
-
8
- const work = new iWork(connection);
9
-
10
- work.getSysValue('QCCSID', (error, output) => {
11
- if (error) {
12
- throw error;
13
- }
14
- console.log(`QCCSID = ${output}`);
15
- });
@@ -1,15 +0,0 @@
1
- const { Connection, iNetwork } = require('itoolkit');
2
-
3
- const connection = new Connection({
4
- transport: 'ssh',
5
- transportOptions: { host: 'myhost', username: 'myuser', password: 'mypassword' },
6
- });
7
-
8
- const net = new iNetwork(connection);
9
-
10
- net.getTCPIPAttr((error, output) => {
11
- if (error) {
12
- throw error;
13
- }
14
- console.log((output));
15
- });
@@ -1,15 +0,0 @@
1
- const { Connection, iUserSpace } = require('itoolkit');
2
-
3
- const connection = new Connection({
4
- transport: 'ssh',
5
- transportOptions: { host: 'myhost', username: 'myuser', password: 'mypassword' },
6
- });
7
-
8
- const userSpace = new iUserSpace(connection);
9
-
10
- userSpace.getUserSpaceData('myuserspace', 'mylib', 20, (error, output) => {
11
- if (error) {
12
- throw error;
13
- }
14
- console.log(output);
15
- });
@@ -1,15 +0,0 @@
1
- const { Connection, iDataQueue } = require('itoolkit');
2
-
3
- const connection = new Connection({
4
- transport: 'ssh',
5
- transportOptions: { host: 'myhost', username: 'myuser', password: 'mypassword' },
6
- });
7
-
8
- const dq = new iDataQueue(connection);
9
-
10
- dq.receiveFromDataQueue('mydq', 'mylib', 20, (error, output) => {
11
- if (error) {
12
- throw error;
13
- }
14
- console.log(output);
15
- });
@@ -1,15 +0,0 @@
1
- const { Connection, iObj } = require('itoolkit');
2
-
3
- const connection = new Connection({
4
- transport: 'ssh',
5
- transportOptions: { host: 'myhost', username: 'myuser', password: 'mypassword' },
6
- });
7
-
8
- const obj = new iObj(connection);
9
-
10
- obj.retrCmdInfo('CRTLIB', '*LIBL', (error, output) => {
11
- if (error) {
12
- throw error;
13
- }
14
- console.log(output);
15
- });
@@ -1,15 +0,0 @@
1
- const { Connection, iObj } = require('itoolkit');
2
-
3
- const connection = new Connection({
4
- transport: 'ssh',
5
- transportOptions: { host: 'myhost', username: 'myuser', password: 'mypassword' },
6
- });
7
-
8
- const obj = new iObj(connection);
9
-
10
- obj.retrPgmInfo('XMLCGI', 'QXMLSERV', (error, output) => {
11
- if (error) {
12
- throw error;
13
- }
14
- console.log(output);
15
- });
@@ -1,16 +0,0 @@
1
-
2
- const { Connection, iObj } = require('itoolkit');
3
-
4
- const connection = new Connection({
5
- transport: 'ssh',
6
- transportOptions: { host: 'myhost', username: 'myuser', password: 'mypassword' },
7
- });
8
-
9
- const obj = new iObj(connection);
10
-
11
- obj.retrSrvPgmInfo('QZSRVSSL', 'QHTTPSVR', (error, output) => {
12
- if (error) {
13
- throw error;
14
- }
15
- console.log(output);
16
- });
@@ -1,15 +0,0 @@
1
- const { Connection, iObj } = require('itoolkit');
2
-
3
- const connection = new Connection({
4
- transport: 'ssh',
5
- transportOptions: { host: 'myhost', username: 'myuser', password: 'mypassword' },
6
- });
7
-
8
- const obj = new iObj(connection);
9
-
10
- obj.retrUserAuthToObj('/home', (error, output) => {
11
- if (error) {
12
- throw error;
13
- }
14
- console.log(output);
15
- });
@@ -1,15 +0,0 @@
1
- const { Connection, iObj } = require('itoolkit');
2
-
3
- const connection = new Connection({
4
- transport: 'ssh',
5
- transportOptions: { host: 'myhost', username: 'myuser', password: 'mypassword' },
6
- });
7
-
8
- const obj = new iObj(connection);
9
-
10
- obj.retrUserInfo('QSYS', (error, output) => {
11
- if (error) {
12
- throw error;
13
- }
14
- console.log(output);
15
- });
@@ -1,15 +0,0 @@
1
- const { Connection, iObj } = require('itoolkit');
2
-
3
- const connection = new Connection({
4
- transport: 'ssh',
5
- transportOptions: { host: 'myhost', username: 'myuser', password: 'mypassword' },
6
- });
7
-
8
- const obj = new iObj(connection);
9
-
10
- obj.retrUsrAuth('*PUBLIC', '*PGM', 'XMLCGI', 'QXMLSERV', (error, output) => {
11
- if (error) {
12
- throw error;
13
- }
14
- console.log(output);
15
- });
@@ -1,15 +0,0 @@
1
- const { Connection, iDataQueue } = require('itoolkit');
2
-
3
- const connection = new Connection({
4
- transport: 'ssh',
5
- transportOptions: { host: 'myhost', username: 'myuser', password: 'mypassword' },
6
- });
7
-
8
- const dq = new iDataQueue(connection);
9
-
10
- dq.sendToDataQueue('TESTQ', 'TEST', 'Hello World!', (error, output) => {
11
- if (error) {
12
- throw error;
13
- }
14
- console.log(output);
15
- });
@@ -1,15 +0,0 @@
1
- const { Connection, iUserSpace } = require('itoolkit');
2
-
3
- const connection = new Connection({
4
- transport: 'ssh',
5
- transportOptions: { host: 'myhost', username: 'myuser', password: 'mypassword' },
6
- });
7
-
8
- const userSpace = new iUserSpace(connection);
9
-
10
- userSpace.setUserSpaceData('myuserspace', 'mylib', 20, 'Hello!', (error, output) => {
11
- if (error) {
12
- throw error;
13
- }
14
- console.log(output);
15
- });
@@ -1,7 +0,0 @@
1
- .. _iCmd:
2
-
3
- iCmd
4
- ----
5
-
6
- .. autofunction:: iCmd
7
- .. autofunction:: clOptionsDeprecated
@@ -1,9 +0,0 @@
1
- .. _iConn:
2
-
3
- iConn
4
- -----
5
- .. autoclass:: iConn
6
- :members:
7
-
8
- .. autofunction:: restConfig
9
- .. autofunction:: runCallbackDeprecated
@@ -1,33 +0,0 @@
1
- .. _iDataQueue:
2
-
3
- iDataQueue
4
- ----------
5
-
6
- .. autoclass:: iDataQueue
7
- :members:
8
-
9
- .. autofunction:: sendToDataQueueCallback
10
- .. autofunction:: receiveFromDataQueueCallback
11
- .. autofunction:: clearDataQueueCallback
12
-
13
- Examples
14
- ^^^^^^^^
15
-
16
- Send data to the data queue
17
- """""""""""""""""""""""""""
18
-
19
- .. literalinclude:: examples/sendToDataQueue.js
20
- :language: javascript
21
-
22
-
23
- Retrieve data from the data queue
24
- """""""""""""""""""""""""""""""""
25
-
26
- .. literalinclude:: examples/receiveFromDataQueue.js
27
- :language: javascript
28
-
29
- Clear the data queue
30
- """"""""""""""""""""
31
-
32
- .. literalinclude:: examples/clearDataQueue.js
33
- :language: javascript
@@ -1,27 +0,0 @@
1
- .. _iNetwork:
2
-
3
- iNetwork
4
- --------
5
-
6
- .. autoclass:: iNetwork
7
- :members:
8
-
9
- .. autofunction:: getTCPIPAttrCallback
10
- .. autofunction:: getTCPIPAttrOutput
11
- .. autofunction:: getNetInterfaceDataCallback
12
- .. autofunction:: getNetInterfaceDataOutput
13
-
14
- Examples
15
- ^^^^^^^^
16
-
17
- Retrieve TCP / IP attributes
18
- """"""""""""""""""""""""""""
19
-
20
- .. literalinclude:: examples/getTCPIPAttr.js
21
- :language: javascript
22
-
23
- Retrieve network interface data
24
- """""""""""""""""""""""""""""""
25
-
26
- .. literalinclude:: examples/getNetInterfaceData.js
27
- :language: javascript