示例#1
0
 public void Dispose()
 {
     if (_disposed)
     {
         return;
     }
     _handler   = null;
     ReceiveKey = null;
     SendKey    = null;
     Manager    = null;
     Socket     = null;
     Character  = null;
     Account    = null;
     Player?.Dispose();
     Player         = null;
     Random         = null;
     ConnectedBuild = null;
     _disposed      = true;
 }
示例#2
0
 public void Dispose()
 {
     if (disposed)
     {
         return;
     }
     handler?.Dispose();
     handler    = null;
     ReceiveKey = null;
     SendKey    = null;
     Manager    = null;
     skt        = null;
     Character  = null;
     Account    = null;
     Player?.Dispose();
     Player   = null;
     Random   = null;
     disposed = true;
 }
示例#3
0
 public void BeginProcess()
 {
     log.InfoFormat($"Received client @ {Socket.RemoteEndPoint}.");
     handler = new NetworkHandler(this, Socket);
     handler.BeginHandling();
 }
示例#4
0
 public void BeginProcess()
 {
     log.InfoFormat("Received client @ {0}.", skt.RemoteEndPoint);
     handler = new NetworkHandler(this, skt);
     handler.BeginHandling();
 }
 public void Dispose()
 {
     if (disposed) return;
     handler?.Dispose();
     handler = null;
     ReceiveKey = null;
     SendKey = null;
     Manager = null;
     Socket = null;
     Character = null;
     Account = null;
     Player?.Dispose();
     Player = null;
     Random = null;
     ConnectedBuild = null;
     disposed = true;
 }
 public void BeginProcess()
 {
     log.InfoFormat($"Received client @ {Socket.RemoteEndPoint}.");
     handler = new NetworkHandler(this, Socket);
     handler.BeginHandling();
 }
示例#7
0
 public void BeginProcess()
 {
     handler = new NetworkHandler(this, skt);
     handler.BeginHandling();
 }
示例#8
0
 public void BeginProcess()
 {
     log.InfoFormat("Received client @ {0}.", skt.RemoteEndPoint);
     handler = new NetworkHandler(this, skt);
     handler.BeginHandling();
 }
示例#9
0
 public void BeginProcess()
 {
     Console.WriteLine($"Received client @ {Socket.RemoteEndPoint}.");
     _handler = new NetworkHandler(this, Socket);
     _handler.BeginHandling();
 }
示例#10
0
 public void BeginProcess()
 {
     handler = new NetworkHandler(this, skt);
     handler.BeginHandling();
 }