Files
libremetaverse/libslupdater/libslupdater.cs
bushing 6d289162a8 more eol-style fixes
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1161 52acb1d6-8a22-11de-b505-999d5b087335
2007-04-28 20:54:02 +00:00

55 lines
1.2 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;
}
}
}