change wording a bit
This commit is contained in:
parent
51c0de4d5c
commit
c717d5efb1
|
@ -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);
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue