Mercurial > projects > ldc
view tango/example/cluster/cserver.d @ 341:1bb99290e03a trunk
[svn r362] Started merging the old 'test' dir as well as the newer 'tangotests' dir into 'tests/mini' and 'tests/minicomplex'.
author | lindquist |
---|---|
date | Sun, 13 Jul 2008 02:51:19 +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.CacheServer; /******************************************************************************* *******************************************************************************/ void main (char[][] args) { auto arg = new CmdParser ("cache.server"); // default number of cache entries arg.size = 8192; if (args.length > 1) arg.parse (args[1..$]); if (arg.help) Cout ("usage: cacheserver -port=number -size=cachesize -log[=trace, info, warn, error, fatal, none]").newline; else (new CacheServer(new InternetAddress(arg.port), arg.log, arg.size)).start; }