You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
656 B
23 lines
656 B
3 years ago
|
using System;
|
||
|
using System.Collections.Concurrent;
|
||
|
using System.Collections.Generic;
|
||
|
using System.Threading;
|
||
|
|
||
|
namespace ET
|
||
|
{
|
||
|
[ComponentOf(typeof(Scene))]
|
||
|
public class NetThreadComponent: Entity, IAwake, ILateUpdate, IDestroy
|
||
|
{
|
||
|
public static NetThreadComponent Instance;
|
||
|
|
||
|
public const int checkInteral = 2000;
|
||
|
public const int recvMaxIdleTime = 60000;
|
||
|
public const int sendMaxIdleTime = 60000;
|
||
|
|
||
|
public Action<AService> foreachAction;
|
||
|
|
||
|
public ThreadSynchronizationContext ThreadSynchronizationContext;
|
||
|
|
||
|
public HashSet<AService> Services = new HashSet<AService>();
|
||
|
}
|
||
|
}
|