Software Ethernet-style driver built on OpenComputers modem components and a simple discovery protocol.
- Repository:
opencomputers - System:
network - Type:
library
OpenComputers/src\main\resources\assets\opencomputers\loot\network\data\lib\network\modem.lua
local modem = require("network.modem")- Description: Return packet and byte counters for a named modem-backed interface such as
eth0. - Parameters:
interface
modem.info(0)- Description: Send a payload to a destination modem address, or short-circuit it locally when the destination is the interface's own modem.
- Parameters:
handleinterfacedestinationdata
modem.send(nil, 0, nil, nil)- Description: Scan modem components, register
eth*interfaces, open port1, broadcast discovery packets, and attach a modem-message listener. - Parameters:
eventHandler
modem.start(nil)- Only exported module functions are listed on this page.