summaryrefslogtreecommitdiff
path: root/IvyToDel/Ivy/IvyProtocol.cs
diff options
context:
space:
mode:
authorfcolin2007-02-01 12:03:55 +0000
committerfcolin2007-02-01 12:03:55 +0000
commit98ab5d0164040427f7c554febae125686284e2a7 (patch)
treea6ab9c20fbf1172553d364c91447149e4dc72ab0 /IvyToDel/Ivy/IvyProtocol.cs
parent531dfa4389ba34a0d32eed0ba8c82839e437d992 (diff)
downloadivy-csharp-98ab5d0164040427f7c554febae125686284e2a7.zip
ivy-csharp-98ab5d0164040427f7c554febae125686284e2a7.tar.gz
ivy-csharp-98ab5d0164040427f7c554febae125686284e2a7.tar.bz2
ivy-csharp-98ab5d0164040427f7c554febae125686284e2a7.tar.xz
modification structure svn
Diffstat (limited to 'IvyToDel/Ivy/IvyProtocol.cs')
-rw-r--r--IvyToDel/Ivy/IvyProtocol.cs25
1 files changed, 25 insertions, 0 deletions
diff --git a/IvyToDel/Ivy/IvyProtocol.cs b/IvyToDel/Ivy/IvyProtocol.cs
new file mode 100644
index 0000000..1b1f3aa
--- /dev/null
+++ b/IvyToDel/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);
+ }
+}