//----< Create CommService and listener and start it >--------------- public bool StartService() { if (Util.verbose) { Console.Write("\n Receiver starting service"); } try { host = CreateListener(); host.Open(); svc = new CommService(); } catch (Exception ex) { Console.Write("\n\n --- creation of Receiver listener failed ---\n"); Console.Write("\n {0}", ex.Message); Console.Write("\n exiting\n\n"); return(false); } return(true); }
//----< Create CommService and listener and start it >--------------- public bool StartService() { if(Util.verbose) Console.Write("\n Receiver starting service"); try { host = CreateListener(); host.Open(); svc = new CommService(); } catch (Exception ex) { Console.Write("\n\n --- creation of Receiver listener failed ---\n"); Console.Write("\n {0}", ex.Message); Console.Write("\n exiting\n\n"); return false; } return true; }