Beispiel #1
0
 public void Awake(NetworkComponent net, AChannel aChannel)
 {
     this.Error   = 0;
     this.channel = aChannel;
     this.requestCallback.Clear();
     //Log.Debug("唤醒");
     channel.ErrorCallback += (c, e) =>
     {
         Log.Debug("移除:" + e);
         this.Error = e;
         this.Network.Remove(this.Id);
     };
     channel.ReadCallback += this.OnRead;
 }
Beispiel #2
0
 public void Awake(NetworkComponent net, AChannel c)
 {
     this.Error   = 0;
     this.channel = c;
     this.requestCallback.Clear();
 }