Ejemplo n.º 1
0
 /// <summary>
 /// 创建Comet线程
 /// </summary>
 /// <param name="count">线程数量</param>
 /// <param name="timeout">请求超时时间</param>
 public static void CreateCometThreads(int timeout, int count)
 {
     Timeout = timeout;
     CometThreadPool.CreateThreads(count);
 }
Ejemplo n.º 2
0
 public void BeginWaitRequest()
 {
     CometThreadPool.QueueCometWaitRequest(new CometWaitRequest(this));
 }