This component is provided by the Internet Card
Component name: internet
.
Callbacks:
isTcpEnabled():boolean
isHttpEnabled():boolean
connect(address:string[, port:number]):userdata
request(url:string[, postData:string[, headers:table]]):userdata
read([n:number]):string
close()
write(data:string):number
finishConnect():boolean
id():string
Returns the id for this socket.
After calling finishConnect
or read
, this socket generates a signal named internet_ready
whenever new data is available to be read. It has one parameter which is the socket id.
read([n:number]):string
response():number, string, table
close()
finishConnect():boolean
Components | 3D Printer - Abstract Bus - Access Point - Chunkloader - Computer - Crafting - Data Card - Database - Debug - Drone - Drive - EEPROM - Experience - Filesystem - Generator - Geolyzer - GPU - Hologram - Internet - Inventory Controller - Leash - Microcontroller - Modem - Motion Sensor - Navigation - Net Splitter - Piston - Redstone - Redstone in Motion - Robot - Screen - Sign - Tank Controller - Tractor Beam - Transposer - Tunnel - World Sensor | |
---|---|---|
Others | Component Access - Signals | |
Cross-Mod Integration | Applied Energistics |