示例#1
0
        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();
        }
示例#2
0
 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));
     }
 }
示例#3
0
 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);
 }