Esempio n. 1
0
 public void Run()
 {
     ServerConnection.AcceptConnection();
     try
     {
         Loop.RunLoop();
     }
     finally
     {
         ServerConnection.Close();
     }
 }
Esempio n. 2
0
        public override void Stop()
        {
            try {
                base.Stop();
            } catch {
                ;
            }

            try {
                if (connection != null)
                {
                    connection.Close();
                    connection = null;
                }
            } catch {
                ;
            }
        }
Esempio n. 3
0
 internal void RemoveConnection(IServerConnection connection)
 {
     connection.StopAsyncRecive();
     connection.Close();
     this.connections.Remove(connection.ID);
 }