cNetwork: Added UDP API.

This commit is contained in:
Mattes D
2015-02-20 14:28:05 +01:00
parent 70d54054e3
commit 9c5162041e
14 changed files with 1588 additions and 48 deletions
+42
View File
@@ -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",