diff options
Diffstat (limited to 'CSharp')
-rw-r--r-- | CSharp/Ivy/IvyPPC/IvyProtocol.cs | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/CSharp/Ivy/IvyPPC/IvyProtocol.cs b/CSharp/Ivy/IvyPPC/IvyProtocol.cs index ffee993..9921804 100644 --- a/CSharp/Ivy/IvyPPC/IvyProtocol.cs +++ b/CSharp/Ivy/IvyPPC/IvyProtocol.cs @@ -3,20 +3,21 @@ using System.Text; namespace IvyBus
{
- public abstract class IvyProtocol
+ internal interface IvyProtocol
{
- abstract internal void TokenStartRegexp(ushort port, string appName);
- abstract internal void TokenEndRegexp();
- abstract internal void TokenApplicationId(ushort priority, string appId);
- abstract internal void TokenAddBinding(Ivy.ApplicationBinding bind);
- abstract internal void TokenDelBinding(ushort bind);
- abstract internal void TokenDirectMsg(ushort id, string message);
- abstract internal void TokenPong(string s);
- abstract internal void TokenPing(string s);
- abstract internal void TokenBye(ushort id, string message);
- abstract internal void TokenDie(ushort err, string message);
- abstract internal void TokenMsg(ushort key, string[] args);
- abstract internal void TokenError(ushort id, string message);
-
+ void Close();
+ bool receiveMsg();
+ void TokenStartRegexp(ushort port, string appName);
+ void TokenEndRegexp();
+ void TokenApplicationId(ushort priority, string appId);
+ void TokenAddBinding(Ivy.ApplicationBinding bind);
+ 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);
}
}
|