summaryrefslogtreecommitdiff
path: root/Ivy/IvyProtocol.cs
blob: 6c276e30d974e129a4b3664a7c9aff9017f40954 (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(string s);
        void TokenPing(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);
    }
}