cNetwork: Exported lookup functions to Lua API.
Also added an example in the NetworkTest plugin.
This commit is contained in:
@@ -36,6 +36,27 @@ g_PluginInfo =
|
||||
},
|
||||
}, -- ParameterCombinations
|
||||
}, -- client
|
||||
|
||||
lookup =
|
||||
{
|
||||
HelpString = "Looks up the IP addresses corresponding to the given hostname (google.com by default)",
|
||||
Handler = HandleConsoleNetLookup,
|
||||
ParameterCombinations =
|
||||
{
|
||||
{
|
||||
Params = "",
|
||||
Help = "Looks up the IP addresses of google.com.",
|
||||
},
|
||||
{
|
||||
Params = "Hostname",
|
||||
Help = "Looks up the IP addresses of the specified hostname.",
|
||||
},
|
||||
{
|
||||
Params = "IP",
|
||||
Help = "Looks up the canonical name of the specified IP.",
|
||||
},
|
||||
},
|
||||
}, -- lookup
|
||||
}, -- Subcommands
|
||||
}, -- net
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user