bitburner-src/markdown/bitburner.ns.scan.md
Olivier Gagnon e16fba2418 scan doc
2021-12-16 15:21:00 -05:00

33 lines
716 B
Markdown

<!-- 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; [scan](./bitburner.ns.scan.md)
## NS.scan() method
Get the list servers connected to a server.
<b>Signature:</b>
```typescript
scan(host?: string): string[];
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| host | string | Hostname of the server to scan. |
<b>Returns:</b>
string\[\]
Returns an string of hostnames.
## Remarks
RAM cost: 0.2 GB
Returns an array containing the hostnames of all servers that are one node way from the specified target server. The hostnames in the returned array are strings.