using System; using System.Text; namespace IvyBus { internal interface IvyProtocol { 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); } }