Mercurial > projects > ldc
view tango/example/cluster/qserver.d @ 223:5ffca623b5df trunk
[svn r239] also use indirect modifier for update constraints
author | ChristianK |
---|---|
date | Fri, 06 Jun 2008 21:51:40 +0200 |
parents | 1700239cab2e |
children |
line wrap: on
line source
/******************************************************************************* *******************************************************************************/ 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; }