NetThreadComponent.cs 576 B

1234567891011121314151617181920
  1. using System;
  2. using System.Collections.Concurrent;
  3. using System.Collections.Generic;
  4. using System.Threading;
  5. namespace ET
  6. {
  7. public class NetThreadComponent: Entity, IAwake, ILateUpdate, IDestroy
  8. {
  9. public static NetThreadComponent Instance;
  10. public const int checkInteral = 20000;
  11. public const int recvMaxIdleTime = 60000;
  12. public const int sendMaxIdleTime = 60000;
  13. public ThreadSynchronizationContext ThreadSynchronizationContext;
  14. public HashSet<AService> Services = new HashSet<AService>();
  15. }
  16. }