bitburner-src/doc/source/netscript/basicfunctions/scan.rst

16 lines
455 B
ReStructuredText
Raw Normal View History

scan() Netscript Function
=========================
2021-03-12 08:51:56 +01:00
.. js:function:: scan(hostname=current hostname)
:RAM cost: 0.2 GB
2021-03-12 08:51:56 +01:00
:param string hostname: Hostname of the server to scan.
:returns: array of strings of all the host directly connected to the target
server.
2021-03-12 08:51:56 +01:00
Example:
.. code-block:: javascript
scan("home"); // returns: ["foodnstuff", "sigma-cosmetics", "joesguns", "hong-fang-tea", "harakiri-sushi", "iron-gym"]