bitburner-src/markdown/bitburner.ns.getporthandle.md

35 lines
711 B
Markdown
Raw Normal View History

2021-10-30 18:34:14 +02:00
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [NS](./bitburner.ns.md) &gt; [getPortHandle](./bitburner.ns.getporthandle.md)
## NS.getPortHandle() method
Get all data on a port.
2021-10-30 18:34:14 +02:00
<b>Signature:</b>
```typescript
2021-11-03 05:33:14 +01:00
getPortHandle(port: number): any[];
2021-10-30 18:34:14 +02:00
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
2021-11-03 05:33:14 +01:00
| port | number | Port number. Must be an integer between 1 and 20. |
2021-10-30 18:34:14 +02:00
<b>Returns:</b>
any\[\]
Data in the specified port.
## 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.
2021-10-30 18:34:14 +02:00