summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/NetworkTest/Info.lua
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-02-21 12:19:03 +0100
committerMattes D <github@xoft.cz>2015-02-21 12:19:03 +0100
commit9971670b4062acbae2f7fba57996f0c1e67c7601 (patch)
tree4d3de89abd8ece59ebc30b4fec48089070a76eb3 /MCServer/Plugins/NetworkTest/Info.lua
parentFixed monster spawn randomness. (diff)
parentAPIDump: Added the UDP zero port policy. (diff)
downloadcuberite-9971670b4062acbae2f7fba57996f0c1e67c7601.tar
cuberite-9971670b4062acbae2f7fba57996f0c1e67c7601.tar.gz
cuberite-9971670b4062acbae2f7fba57996f0c1e67c7601.tar.bz2
cuberite-9971670b4062acbae2f7fba57996f0c1e67c7601.tar.lz
cuberite-9971670b4062acbae2f7fba57996f0c1e67c7601.tar.xz
cuberite-9971670b4062acbae2f7fba57996f0c1e67c7601.tar.zst
cuberite-9971670b4062acbae2f7fba57996f0c1e67c7601.zip
Diffstat (limited to 'MCServer/Plugins/NetworkTest/Info.lua')
-rw-r--r--MCServer/Plugins/NetworkTest/Info.lua42
1 files changed, 42 insertions, 0 deletions
diff --git a/MCServer/Plugins/NetworkTest/Info.lua b/MCServer/Plugins/NetworkTest/Info.lua
index c3c2ea8fc..52422d427 100644
--- a/MCServer/Plugins/NetworkTest/Info.lua
+++ b/MCServer/Plugins/NetworkTest/Info.lua
@@ -84,6 +84,48 @@ g_PluginInfo =
},
}, -- lookup
+ udp =
+ {
+ Subcommands =
+ {
+ close =
+ {
+ Handler = HandleConsoleNetUdpClose,
+ ParameterCombinations =
+ {
+ {
+ Params = "[Port]",
+ Help = "Closes the UDP endpoint on the specified port [1024].",
+ }
+ },
+ }, -- close
+
+ listen =
+ {
+ Handler = HandleConsoleNetUdpListen,
+ ParameterCombinations =
+ {
+ {
+ Params = "[Port]",
+ Help = "Listens on the specified UDP port [1024], dumping the incoming datagrams into log",
+ },
+ },
+ }, -- listen
+
+ send =
+ {
+ Handler = HandleConsoleNetUdpSend,
+ ParameterCombinations =
+ {
+ {
+ Params = "[Host] [Port] [Message]",
+ Help = "Sends the message [\"hello\"] through UDP to the specified host [localhost] and port [1024]",
+ },
+ },
+ } -- send
+ }, -- Subcommands ("net udp")
+ }, -- udp
+
wasc =
{
HelpString = "Requests the webadmin homepage using https",