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