mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-13 11:23:14 +01:00
Initial commit after moving to Tango instead of Phobos. Lots of bugfixes... This build is not suitable for most things.
28 lines
856 B
D
28 lines
856 B
D
/*******************************************************************************
|
|
|
|
*******************************************************************************/
|
|
|
|
import tango.io.Console;
|
|
|
|
import tango.net.InternetAddress;
|
|
|
|
import tango.net.cluster.tina.CmdParser,
|
|
tango.net.cluster.tina.QueueServer;
|
|
|
|
/*******************************************************************************
|
|
|
|
*******************************************************************************/
|
|
|
|
void main (char[][] args)
|
|
{
|
|
auto arg = new CmdParser ("queue.server");
|
|
|
|
if (args.length > 1)
|
|
arg.parse (args[1..$]);
|
|
|
|
if (arg.help)
|
|
Cout ("usage: queueserver -port=number -log[=trace, info, warn, error, fatal, none]").newline;
|
|
else
|
|
(new QueueServer(new InternetAddress(arg.port), arg.log)).start;
|
|
}
|