summaryrefslogtreecommitdiff
path: root/Ivy/IvyProtocol.cs
blob: c9d11ede23d642203313513f126270b15383eb3c (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
26
27
28

namespace IvyBus
{
    using System;
    using System.Text;

    public enum BindingType 
    {
        RegularExpression, Simple 
    }
        
    internal interface IvyProtocol
    {
        void Close();
        bool ReceiveMsg();
        void TokenStartRegexp(int port, string appName);
        void TokenEndRegexp();
        void TokenAddBinding(BindingType type, int id, string expression);
        void TokenDelBinding(int bind);
        void TokenDirectMsg(int id, string message);
        void TokenPong(int id, string s);
        void TokenPing(int id, string s);
        void TokenBye(int id, string message);
        void TokenDie(int err, string message);
        void TokenMsg(int key, string[] args);
        void TokenError(int id, string message);
    }
}