LifeLua 30-05-2025
Documentation for LifeLua
Loading...
Searching...
No Matches
network

Network library. More...

Functions

table network.ftp (boolean enable)
 
nil network.ftpadddevice (string device)
 
nil network.ftpremovedevice (string device)
 
boolean network.ftpinit ()
 
boolean network.wifi ()
 
string network.ip ()
 
string network.mac ()
 
nil network.download (string url, string path)
 

Detailed Description

Function Documentation

◆ network.download()

nil network.download ( string url,
string path )

Downloads a file to a specified path

Remarks
This function can call LifeLuaNetworkDownload if it exists. Arguments' names don't matter.
Example:
function LifeLuaNetworkDownload(read, wrote, size, speed)
draw.text(10, 10, read, white)
draw.text(10, 30, math.floor((wrote*100)/size).."% completed", white)
draw.text(10, 50, size.." B", white)
draw.gradientrect(0, 544-39, (wrote*960)/size, 39, white, blue, white, blue)
draw.swapbuffers()
end
network.download(url, path)

◆ network.ftp()

table network.ftp ( boolean enable)

Initializes FTP

Returns
A table with the enabled IP and port

◆ network.ftpadddevice()

nil network.ftpadddevice ( string device)

Adds a partition to the running FTP server

◆ network.ftpinit()

boolean network.ftpinit ( )

Checks if FTP is enabled or not

◆ network.ftpremovedevice()

nil network.ftpremovedevice ( string device)

Removes a partition from the running FTP server

◆ network.ip()

string network.ip ( )

Gets the Vita's IP address

◆ network.mac()

string network.mac ( )

Gets the Vita's MAC address

◆ network.wifi()

boolean network.wifi ( )

Checks if the WiFi is enabled on the Vita or not