mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-23 14:42:28 +01:00
1.8 KiB
1.8 KiB
Server interface
A single server.
Signature:
export interface Server
Properties
Property | Type | Description |
---|---|---|
cpuCores | number | How many CPU cores this server has. Maximum of 8. Affects magnitude of grow and weaken. |
ftpPortOpen | boolean | Flag indicating whether the FTP port is open |
hasAdminRights | boolean | Flag indicating whether player has admin/root access to this server |
hostname | string | Hostname. Must be unique |
httpPortOpen | boolean | Flag indicating whether HTTP Port is open |
ip | string | IP Address. Must be unique |
isConnectedTo | boolean | Flag indicating whether player is curently connected to this server |
maxRam | number | RAM (GB) available on this server |
organizationName | string | Name of company/faction/etc. that this server belongs to. Optional, not applicable to all Servers |
ramUsed | number | RAM (GB) used. i.e. unavailable RAM |
smtpPortOpen | boolean | Flag indicating whether SMTP Port is open |
sqlPortOpen | boolean | Flag indicating whether SQL Port is open |
sshPortOpen | boolean | Flag indicating whether the SSH Port is open |