示例#1
0
 /// <summary>
 ///     清理资源
 /// </summary>
 public override void Clear()
 {
     Target.AcceptSocket   = null;
     Target.UserToken      = null;
     Target.RemoteEndPoint = null;
     SocketHelper.Clear(Target);
     base.Clear();
 }
示例#2
0
 public void Clear()
 {
     Tag = null;
     Target.AcceptSocket   = null;
     Target.UserToken      = null;
     Target.RemoteEndPoint = null;
     Target.SetBuffer(null, 0, 0);
     SocketHelper.Clear(Target);
 }