bitburner-src/markdown/bitburner.ns.getporthandle.md
omuretsu 06a985bdf8 Revert "Remove markdown from git tracking (#139)"
This reverts commit bbb6e3f309935aebac74ddb1fbeec12dfb7540b1.
2022-10-21 11:16:00 -04:00

728 B

Home > bitburner > NS > getPortHandle

NS.getPortHandle() method

Get all data on a port.

Signature:

getPortHandle(port: number): NetscriptPort;

Parameters

Parameter Type Description
port number Port number. Must be an integer between 1 and 20.

Returns:

NetscriptPort

Remarks

RAM cost: 0 GB

Get a handle to a Netscript Port.

WARNING: Port Handles only work in NetscriptJS (Netscript 2.0). They will not work in Netscript 1.0.