public void ServerStart() { CrawlerServer_ = new AsyncSocketServer(20001); CrawlerServer_.OnAccept += new AsyncSocketAcceptEventHandler(OnAcceptCrawler); CrawlerServer_.Listen(); CheckerServer_ = new AsyncSocketServer(20002); CheckerServer_.OnAccept += new AsyncSocketAcceptEventHandler(OnAcceptChecker); CheckerServer_.Listen(); }
public void ServerStart() { try { CrawlerServer_ = new AsyncSocketServer(ListenCrawlerPort_); CrawlerServer_.OnAccept += new AsyncSocketAcceptEventHandler(OnAcceptCrawler); CrawlerServer_.Listen(); } catch (System.Exception ex) { MessageBox.Show(string.Format("크롤러 리슨 서버 시작 실패 {0}", ex.Message)); } }
public bool ServerStart() { try { CrawlerServer_ = new AsyncSocketServer(CheckerINIManager.Instance.ListenCrawlerPort_); CrawlerServer_.OnAccept += new AsyncSocketAcceptEventHandler(OnAcceptCrawler); CrawlerServer_.Listen(); } catch (System.Exception ex) { MessageBox.Show(string.Format("크롤러 리슨 서버 시작 실패 {0}", ex.Message)); return(false); } return(true); }