|
|
@@ -5,12 +5,12 @@ namespace ET
|
|
|
{
|
|
|
[EntitySystemOf(typeof(NetComponent))]
|
|
|
[FriendOf(typeof(NetComponent))]
|
|
|
- public static partial class NetOuterComponentSystem
|
|
|
+ public static partial class NetComponentSystem
|
|
|
{
|
|
|
[EntitySystem]
|
|
|
private static void Awake(this NetComponent self, IPEndPoint address)
|
|
|
{
|
|
|
- self.AService = new KService(address, ServiceType.Outer, self.Fiber().Log);
|
|
|
+ self.AService = new TService(address, ServiceType.Outer, self.Fiber().Log);
|
|
|
self.AService.AcceptCallback = self.OnAccept;
|
|
|
self.AService.ReadCallback = self.OnRead;
|
|
|
self.AService.ErrorCallback = self.OnError;
|
|
|
@@ -19,7 +19,7 @@ namespace ET
|
|
|
[EntitySystem]
|
|
|
private static void Awake(this NetComponent self, AddressFamily addressFamily)
|
|
|
{
|
|
|
- self.AService = new KService(addressFamily, ServiceType.Outer, self.Fiber().Log);
|
|
|
+ self.AService = new TService(addressFamily, ServiceType.Outer, self.Fiber().Log);
|
|
|
self.AService.ReadCallback = self.OnRead;
|
|
|
self.AService.ErrorCallback = self.OnError;
|
|
|
}
|
|
|
@@ -74,7 +74,7 @@ namespace ET
|
|
|
|
|
|
LogMsg.Instance.Debug(self.Fiber(), message);
|
|
|
|
|
|
- EventSystem.Instance.Invoke((long)self.IScene.SceneType, new NetOuterComponentOnRead() {Session = session, Message = message});
|
|
|
+ EventSystem.Instance.Invoke((long)self.IScene.SceneType, new NetComponentOnRead() {Session = session, Message = message});
|
|
|
}
|
|
|
|
|
|
public static Session Create(this NetComponent self, IPEndPoint realIPEndPoint)
|