1
0

cNetwork: Exported lookup functions to Lua API.

Also added an example in the NetworkTest plugin.
This commit is contained in:
Mattes D
2015-01-29 11:09:56 +01:00
parent 04347084d6
commit 17498a97a2
7 changed files with 282 additions and 3 deletions

View File

@@ -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
},