From 94638130826256f324a470411b6baf7ae8cd6f4c Mon Sep 17 00:00:00 2001
From: fcolin
Date: Thu, 1 Feb 2007 09:54:24 +0000
Subject: Utilisateur : Fcolin Date : 1/12/03 Heure : 14:22 Archivé
dans $/EScribe/Ivy Commentaire: (vss 14)
---
CSharp/Ivy/IvyPPC/Ivy.cs | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
(limited to 'CSharp/Ivy/IvyPPC/Ivy.cs')
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;
/// The Main bus Class
///
@@ -329,6 +330,24 @@ namespace IvyBus
{
return sendMsg( string.Format( format, args ) );
}
+ /// Send a formated message to someone on the bus
+ ///
+ ///
+ /// 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.
+ ///
+ /// A string message format to build the message
+ /// args used in message format
+ ///
+ /// the number of messages actually sent
+ ///
+ ///
+ public int sendMsg(CultureInfo culture, string format, params object[] args )
+ {
+ return sendMsg( string.Format( culture, format, args ) );
+ }
/// Subscribes to a regular expression.
///
--
cgit v1.1