summaryrefslogtreecommitdiff
path: root/Ivy/IvyProtocol.cs
diff options
context:
space:
mode:
authorfcolin2007-02-01 12:04:16 +0000
committerfcolin2007-02-01 12:04:16 +0000
commit92757a8d629812303ff3665343bd098917cca611 (patch)
treecd995c9863aa6fc4c32ec5ce247e4c3119eb44a3 /Ivy/IvyProtocol.cs
parent98ab5d0164040427f7c554febae125686284e2a7 (diff)
downloadivy-csharp-92757a8d629812303ff3665343bd098917cca611.zip
ivy-csharp-92757a8d629812303ff3665343bd098917cca611.tar.gz
ivy-csharp-92757a8d629812303ff3665343bd098917cca611.tar.bz2
ivy-csharp-92757a8d629812303ff3665343bd098917cca611.tar.xz
modification structure svn
Diffstat (limited to 'Ivy/IvyProtocol.cs')
-rw-r--r--Ivy/IvyProtocol.cs25
1 files changed, 25 insertions, 0 deletions
diff --git a/Ivy/IvyProtocol.cs b/Ivy/IvyProtocol.cs
new file mode 100644
index 0000000..1b1f3aa
--- /dev/null
+++ b/Ivy/IvyProtocol.cs
@@ -0,0 +1,25 @@
+using System;
+using System.Text;
+
+namespace IvyBus
+{
+ public enum BindingType { Regexp, Simple };
+
+ internal interface IvyProtocol
+ {
+ void Close();
+ bool receiveMsg();
+ void TokenStartRegexp(ushort port, string appName);
+ void TokenEndRegexp();
+ void TokenApplicationId(ushort priority, string appId);
+ void TokenAddBinding(BindingType type, ushort id, string expression);
+ void TokenDelBinding(ushort bind);
+ void TokenDirectMsg(ushort id, string message);
+ void TokenPong(string s);
+ void TokenPing(string s);
+ void TokenBye(ushort id, string message);
+ void TokenDie(ushort err, string message);
+ void TokenMsg(ushort key, string[] args);
+ void TokenError(ushort id, string message);
+ }
+}