FACT++  1.0
int main ( int  argc,
const char **  argv 
)

Definition at line 191 of file fsc.cc.

References Port.

192 {
193  //try
194  {
195  ba::io_service io_service;
196 
197  int Port = argc==2 ? lexical_cast<int>(argv[1]) : 5000;
198 
199  tcp_server server(io_service, Port);
200  // ba::add_service(io_service, &server);
201  // server.add_service(...);
202  //cout << "Run..." << flush;
203 
204  // Calling run() from a single thread ensures no concurrent access
205  // of the handler which are called!!!
206  io_service.run();
207 
208  //cout << "end." << endl;
209  }
210  /*catch (std::exception& e)
211  {
212  std::cerr << e.what() << std::endl;
213  }*/
214 
215  return 0;
216 }
int Port
Definition: ftm.cc:27