mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-18 11:48:02 -04:00
Added maxPacketSize()
parent
c7bfcb238c
commit
7c15c38b97
@ -4,6 +4,8 @@ Component name: `modem`.
|
||||
Callbacks:
|
||||
- `isWireless(): boolean`
|
||||
Returns whether this modem is capable of sending wireless messages.
|
||||
- `maxPacketSize(): number`
|
||||
Returns the maximum packet size for sending messages via network cards. Defaults to 8192, doesn't apply to HTTP traffic. You can change this in the OpenComputer configuration file.
|
||||
- `isOpen(port: number): boolean`
|
||||
Returns whether the specified "port" is currently being listened on. Messages only trigger signals when they arrive on a port that is open.
|
||||
- `open(port: number): boolean`
|
||||
|
Loading…
x
Reference in New Issue
Block a user