Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

int Impala::Application::mainFileServer ( int  argc,
char *  argv[] 
)

Definition at line 152 of file mainFileServer.cpp.

References Impala::atol(), Impala::CmdOptions::GetArg(), Impala::CmdOptions::GetInstance(), Impala::CmdOptions::GetString(), Impala::CmdOptions::Initialise(), Impala::CmdOptions::ParseArgs(), and Impala::Util::ChannelServer::Start().

Referenced by main().

00153 {
00154     CmdOptions& options = CmdOptions::GetInstance();
00155     options.Initialise(true, true, true);
00156     // multiple ports require a lot more bookkeeping for multipart messages
00157     //if (! options.ParseArgs(argc, argv, "port [nrPorts]", 1))
00158     if (! options.ParseArgs(argc, argv, "port", 1))
00159         return 1;
00160 
00161     int port = atol(options.GetArg(0));
00162 
00163     //if (options.GetNrArg() > 1)
00164     //    nrPorts = atol(options.GetArg(1));
00165     int nrPorts = 1;
00166 
00167     String passwordFile = options.GetString("passwordFile");
00168     Application::FileServer fileServer(port, nrPorts, passwordFile);
00169     bool doIdle = false;
00170     fileServer.Start(doIdle);
00171 
00172     return 0;
00173 }

Here is the call graph for this function:


Generated on Fri Mar 19 10:36:24 2010 for ImpalaSrc by  doxygen 1.5.1