summaryrefslogtreecommitdiff
path: root/CSharp/Ivy/IvyPPC/IvyProtocol.cs
blob: 1b1f3aa3be66c5cff41a4e39cf50a223d37e3103 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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);
    }
}