PtokaX forum

Archive => Archived 5.0 boards => Help with scripts => Topic started by: TecMaster on 02 March, 2005, 15:54:33

Title: WhoIs Conversion to LUA5
Post by: TecMaster on 02 March, 2005, 15:54:33
Is it possible to convert the following

local socket,err,Database = "","",""
if num==1 then
Database = "RIPE"
socket, err = connect("whois.ripe.net", 43)
elseif num==2 then
Database = "ARIN"
socket, err = connect("whois.arin.net", 43)
elseif num==3 then
Database = "NIC"
socket, err = connect("whois.nic.br", 43)
elseif num==4 then
Database = "APNIC"
socket, err = connect("whois.apnic.net", 43)
end



The connect dont seem to work in LUA5... it's from chillas L.I.S script.
Title:
Post by: NightLitch on 02 March, 2005, 16:47:11
The new PtokaX doesn't have LuaSockets intergated...

You need a plugin... So why not make this a request for it...

Someone that can compile the LuaSocket so it works for PtokaX or fix so it works...

plop mate, someone....
Title:
Post by: Snooze on 08 March, 2005, 09:45:34
Dammit - i were just looking for this function .. consider this a formal request