diff options
-rw-r--r-- | CSharp/Ivy/Ivy/IvyTCPStreamV4.cs | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/CSharp/Ivy/Ivy/IvyTCPStreamV4.cs b/CSharp/Ivy/Ivy/IvyTCPStreamV4.cs index 0be051e..de3651a 100644 --- a/CSharp/Ivy/Ivy/IvyTCPStreamV4.cs +++ b/CSharp/Ivy/Ivy/IvyTCPStreamV4.cs @@ -96,13 +96,16 @@ namespace IvyBus sendMsg(MessageType.ApplicationId, priority, appId);
}
- public override void TokenAddRegexp(ushort id, string bind)
+ internal override void TokenAddBinding(IvyBindingBase bind)
{
- sendMsg(MessageType.AddRegexp , id, bind); /* perhaps we should perform some checking here */
- }
- public override void TokenAddBinding(ushort id, string bind)
- {
- sendMsg(MessageType.AddBinding, id, bind); /* perhaps we should perform some checking here */
+ if (bind)
+ {
+ sendMsg(MessageType.AddRegexp, id, bind); /* perhaps we should perform some checking here */
+ }
+ else
+ {
+ sendMsg(MessageType.AddBinding, id, bind); /* perhaps we should perform some checking here */
+ }
}
public override void TokenDelBinding(ushort id)
|