diff options
author | Mattes D <github@xoft.cz> | 2015-01-30 21:24:02 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-02-04 08:40:52 +0100 |
commit | 014b96adb33fa902072d9f35661bc4f5e7c323e8 (patch) | |
tree | 46dcb57a65829d6364cbabec7add4021b9008ee6 /MCServer/Plugins/NetworkTest/Info.lua | |
parent | cNetwork: Exported lookup functions to Lua API. (diff) | |
download | cuberite-014b96adb33fa902072d9f35661bc4f5e7c323e8.tar cuberite-014b96adb33fa902072d9f35661bc4f5e7c323e8.tar.gz cuberite-014b96adb33fa902072d9f35661bc4f5e7c323e8.tar.bz2 cuberite-014b96adb33fa902072d9f35661bc4f5e7c323e8.tar.lz cuberite-014b96adb33fa902072d9f35661bc4f5e7c323e8.tar.xz cuberite-014b96adb33fa902072d9f35661bc4f5e7c323e8.tar.zst cuberite-014b96adb33fa902072d9f35661bc4f5e7c323e8.zip |
Diffstat (limited to 'MCServer/Plugins/NetworkTest/Info.lua')
-rw-r--r-- | MCServer/Plugins/NetworkTest/Info.lua | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/MCServer/Plugins/NetworkTest/Info.lua b/MCServer/Plugins/NetworkTest/Info.lua index 8c2604e31..f366fd1be 100644 --- a/MCServer/Plugins/NetworkTest/Info.lua +++ b/MCServer/Plugins/NetworkTest/Info.lua @@ -37,6 +37,32 @@ g_PluginInfo = }, -- ParameterCombinations }, -- client + close = + { + HelpString = "Close a listening socket", + Handler = HandleConsoleNetClose, + ParameterCombinations = + { + { + Params = "[Port]", + Help = "Closes a socket listening on the specified port [1024]", + }, + }, -- ParameterCombinations + }, -- close + + listen = + { + HelpString = "Creates a new listening socket on the specified port with the specified service attached to it", + Handler = HandleConsoleNetListen, + ParameterCombinations = + { + { + Params = "[Port] [Service]", + Help = "Starts listening on the specified port [1024] providing the specified service [echo]", + }, + }, -- ParameterCombinations + }, -- listen + lookup = { HelpString = "Looks up the IP addresses corresponding to the given hostname (google.com by default)", @@ -57,6 +83,7 @@ g_PluginInfo = }, }, }, -- lookup + }, -- Subcommands }, -- net }, |