mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-23 14:42:28 +01:00
16 lines
448 B
ReStructuredText
16 lines
448 B
ReStructuredText
getServerNumPortsRequired() Netscript Function
|
|
==============================================
|
|
|
|
.. js:function:: getServerNumPortsRequired(hostname)
|
|
|
|
:RAM cost: 0.1 GB
|
|
:param string hostname: Hostname of target server.
|
|
:returns: The number of open ports required to successfully run NUKE.exe on
|
|
the specified server.
|
|
|
|
Example:
|
|
|
|
.. code-block:: javascript
|
|
|
|
ns.getServerNumPortsRequired("unitalife"); // returns: 4
|