summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/NetworkTest/Info.lua
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-01-28 15:15:54 +0100
committerMattes D <github@xoft.cz>2015-02-04 08:40:51 +0100
commit04347084d658baedd6dc615fa34b62d3c19f1d2e (patch)
treed9756a8f468fc31eed61ddbc3501c7981a0e8af5 /MCServer/Plugins/NetworkTest/Info.lua
parentcTCPLink: Fixed missing addresses on link connection. (diff)
downloadcuberite-04347084d658baedd6dc615fa34b62d3c19f1d2e.tar
cuberite-04347084d658baedd6dc615fa34b62d3c19f1d2e.tar.gz
cuberite-04347084d658baedd6dc615fa34b62d3c19f1d2e.tar.bz2
cuberite-04347084d658baedd6dc615fa34b62d3c19f1d2e.tar.lz
cuberite-04347084d658baedd6dc615fa34b62d3c19f1d2e.tar.xz
cuberite-04347084d658baedd6dc615fa34b62d3c19f1d2e.tar.zst
cuberite-04347084d658baedd6dc615fa34b62d3c19f1d2e.zip
Diffstat (limited to 'MCServer/Plugins/NetworkTest/Info.lua')
-rw-r--r--MCServer/Plugins/NetworkTest/Info.lua46
1 files changed, 46 insertions, 0 deletions
diff --git a/MCServer/Plugins/NetworkTest/Info.lua b/MCServer/Plugins/NetworkTest/Info.lua
new file mode 100644
index 000000000..6bb639860
--- /dev/null
+++ b/MCServer/Plugins/NetworkTest/Info.lua
@@ -0,0 +1,46 @@
+
+-- Info.lua
+
+-- Implements the g_PluginInfo standard plugin description
+
+g_PluginInfo =
+{
+ Name = "NetworkTest",
+ Version = "1",
+ Date = "2015-01-28",
+ Description = [[Implements test code (and examples) for the cNetwork API]],
+
+ Commands =
+ {
+ },
+
+ ConsoleCommands =
+ {
+ net =
+ {
+ Subcommands =
+ {
+ client =
+ {
+ HelpString = "Connects, as a client, to a specified webpage (google.com by default) and downloads its front page using HTTP",
+ Handler = HandleConsoleNetClient,
+ ParameterCombinations =
+ {
+ {
+ Params = "",
+ Help = "Connects, as a client, to google.com and downloads its front page using HTTP",
+ },
+ {
+ Params = "host [port]",
+ Help = "Connects, as a client, to the specified host and downloads its front page using HTTP",
+ },
+ }, -- ParameterCombinations
+ }, -- client
+ }, -- Subcommands
+ }, -- net
+ },
+}
+
+
+
+