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

View file

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