Files
libremetaverse/libslupdater/libslupdater.cs
John Hurliman 1cb7f4c253 Huge svn cleanup!
* libsecondlife-cs is now libsecondlife
* All applications that are staying have been moved to trunk/
* SLProxy loads Analyst plugin by default if no other plugin is specified on the command line

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1068 52acb1d6-8a22-11de-b505-999d5b087335
2007-03-26 23:12:39 +00:00

55 lines
1.3 KiB
C#

using System;
using System.Collections.Generic;
using System.Net;
namespace libslupdater
{
public class Updater
{
public const string CheckURI = "http://www.libsecondlife.org/ccnet/update/";
private bool busy = false;
public bool Busy
{
get { return busy; }
}
public Updater()
{
}
public void UpdateProcessBegin()
{
busy = true;
// Start a thread that:
///////////////////////
// Connects to the check URI and see if we're running the latest
// If not, download from the latest update link given by the check server
// Confirm the download checksum, start the waiting thread, and return a kill
// signal to the calling app
// Wait for the app to die and replace the target file
// Re-launch the app and kill this process
}
public int UpdateProcess()
{
// Call UpdateProcessBegin and wait for a response, return the response
return 0;
}
}
public class Program
{
static int Main(string[] args)
{
return 0;
}
}
}