tryWrite() Netscript Function¶
-
tryWrite
(port, data="")¶ Arguments: - port (number) – Port to be written to
- data (string) – Data to try to write
Returns: True if the data is successfully written to the port, and false otherwise
RAM cost: 1 GB
Attempts to write data to the specified Netscript Port. If the port is full, the data will not be written. Otherwise, the data will be written normally