Definition at line 610 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(). 00611 { 00612 CmdOptions& options = CmdOptions::GetInstance(); 00613 options.Initialise(true, true, true); 00614 options.AddOption(0, "dstWin", "", "0"); 00615 options.AddOption(0, "noIdle", "", "0"); 00616 if (! options.ParseArgs(argc, argv, "port [nrPorts]", 1)) 00617 return 1; 00618 00619 bool useDstTypeWin = options.GetBool("dstWin"); 00620 String passwordFile = options.GetString("passwordFile"); 00621 int port = atol(options.GetArg(0)); 00622 int nrPorts = 100; 00623 if (options.GetNrArg() > 1) 00624 nrPorts = atol(options.GetArg(1)); 00625 00626 Application::DataServer dataServer(port, nrPorts, passwordFile, useDstTypeWin); 00627 bool doIdle = ! options.GetBool("noIdle"); 00628 dataServer.Start(doIdle); 00629 00630 return 0; 00631 }
Here is the call graph for this function: ![]()
|