summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfcolin2007-02-01 09:54:24 +0000
committerfcolin2007-02-01 09:54:24 +0000
commit94638130826256f324a470411b6baf7ae8cd6f4c (patch)
tree8d7612a1783648123a05329a3be3bbf6637b8417
parent7ed95260da40a765007cdf57520b7da53a70d008 (diff)
downloadivy-csharp-94638130826256f324a470411b6baf7ae8cd6f4c.zip
ivy-csharp-94638130826256f324a470411b6baf7ae8cd6f4c.tar.gz
ivy-csharp-94638130826256f324a470411b6baf7ae8cd6f4c.tar.bz2
ivy-csharp-94638130826256f324a470411b6baf7ae8cd6f4c.tar.xz
Utilisateur : Fcolin Date : 1/12/03 Heure : 14:22 Archivé dans $/EScribe/Ivy Commentaire: (vss 14)
-rw-r--r--CSharp/Ivy/IvyPPC/Ivy.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/CSharp/Ivy/IvyPPC/Ivy.cs b/CSharp/Ivy/IvyPPC/Ivy.cs
index 18f94e7..4026b1b 100644
--- a/CSharp/Ivy/IvyPPC/Ivy.cs
+++ b/CSharp/Ivy/IvyPPC/Ivy.cs
@@ -13,6 +13,7 @@ namespace IvyBus
using System.Threading;
using System.Configuration;
using System.Windows.Forms;
+ using System.Globalization;
/// <summary> The Main bus Class
/// </summary>
@@ -329,6 +330,24 @@ namespace IvyBus
{
return sendMsg( string.Format( format, args ) );
}
+ /// <summary> Send a formated message to someone on the bus
+ /// </summary>
+ /// <remarks>
+ /// Performs a pattern matching according to everyone's regexps, and sends
+ /// the results to the relevant ivy agents.
+ /// There is one thread for each client connected, we could also
+ /// create another thread each time we send a message.
+ /// </remarks>
+ /// <param name='format'>A string message format to build the message
+ /// <param name='args'>args used in message format
+ /// </param>
+ /// <returns>the number of messages actually sent
+ ///
+ /// </returns>
+ public int sendMsg(CultureInfo culture, string format, params object[] args )
+ {
+ return sendMsg( string.Format( culture, format, args ) );
+ }
/// <summary> Subscribes to a regular expression.
/// </summary>