mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-20 21:25:47 +01:00
ae15914efa
Unfortunately, I haven't used most of the specialty APIs yet, so I'm not intimately familiar with where their documentation might be wrong. I figured some fixes were better than no fixes, and I can always make more fixes later. Fixes #1023.
15 lines
498 B
ReStructuredText
15 lines
498 B
ReStructuredText
tryWrite() Netscript Function
|
|
=============================
|
|
|
|
.. js:function:: tryWrite(port, data="")
|
|
|
|
:RAM cost: 1 GB
|
|
:param number port: Port to be written to
|
|
:param string data: Data to try to write
|
|
:returns: ``true`` if the data is successfully written to the port.
|
|
|
|
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.
|
|
|
|
See :ref:`netscript_ports` for more details.
|