change wording a bit

This commit is contained in:
Hylke Bons 2011-02-27 01:01:13 +00:00
parent 28d06b4eeb
commit e333a759ae
2 changed files with 12 additions and 4 deletions

View file

@ -68,7 +68,7 @@ namespace SparkleLib {
// Starts a new thread and listens to the channel
public void ListenForChanges ()
public void Listen ()
{
Thread = new Thread (
@ -101,6 +101,14 @@ namespace SparkleLib {
Thread.Start ();
}
public void Announce (string message)
{
Client.SendMessage (SendType.Message, Channel, message);
}
// Frees all resources for this Listener
@ -114,7 +122,7 @@ namespace SparkleLib {
// Creates an SHA-1 hash of input
public static string GetSHA1 (string s)
private static string GetSHA1 (string s)
{
SHA1 sha1 = new SHA1CryptoServiceProvider ();
Byte[] bytes = ASCIIEncoding.Default.GetBytes (s);

View file

@ -390,7 +390,7 @@ namespace SparkleLib {
};
// Start listening
Listener.ListenForChanges ();
Listener.Listen ();
SizeBuffer = new List <double> ();
@ -830,7 +830,7 @@ namespace SparkleLib {
PushingFinished (this, args);
if (!_IsPolling)
Listener.Client.SendMessage (SendType.Message, Listener.Channel, _CurrentHash);
Listener.Announce (_CurrentHash);
}