Definition at line 583 of file mainDataServer.cpp. References Impala::CmdOptions::AddOption(), Impala::atol(), Impala::CmdOptions::GetArg(), Impala::CmdOptions::GetBool(), Impala::CmdOptions::GetInstance(), Impala::CmdOptions::GetNrArg(), Impala::CmdOptions::GetString(), Impala::CmdOptions::Initialise(), Impala::CmdOptions::ParseArgs(), and Impala::Util::ChannelServer::Start(). Referenced by main(). 00584 { 00585 CmdOptions& options = CmdOptions::GetInstance(); 00586 options.Initialise(true, true, true); 00587 options.AddOption(0, "dstWin", "", "0"); 00588 options.AddOption(0, "noIdle", "", "0"); 00589 if (! options.ParseArgs(argc, argv, "port [nrPorts]", 1)) 00590 return 1; 00591 00592 bool useDstTypeWin = options.GetBool("dstWin"); 00593 String passwordFile = options.GetString("passwordFile"); 00594 int port = atol(options.GetArg(0)); 00595 int nrPorts = 100; 00596 if (options.GetNrArg() > 1) 00597 nrPorts = atol(options.GetArg(1)); 00598 00599 Application::DataServer dataServer(port, nrPorts, passwordFile, useDstTypeWin); 00600 bool doIdle = ! options.GetBool("noIdle"); 00601 dataServer.Start(doIdle); 00602 00603 return 0; 00604 }
Here is the call graph for this function:
|