summaryrefslogtreecommitdiff
path: root/Ivy/IvyPPC/IvyProtocol.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ivy/IvyPPC/IvyProtocol.cs')
-rw-r--r--Ivy/IvyPPC/IvyProtocol.cs25
1 files changed, 25 insertions, 0 deletions
diff --git a/Ivy/IvyPPC/IvyProtocol.cs b/Ivy/IvyPPC/IvyProtocol.cs
new file mode 100644
index 0000000..1b1f3aa
--- /dev/null
+++ b/Ivy/IvyPPC/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);
+ }
+}