From 92757a8d629812303ff3665343bd098917cca611 Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 12:04:16 +0000 Subject: modification structure svn --- Ivy/IvyProtocol.cs | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Ivy/IvyProtocol.cs (limited to 'Ivy/IvyProtocol.cs') 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); + } +} -- cgit v1.1