コード例 #1
0
ファイル: ZObject.cs プロジェクト: NotHuza/Cerberus-v4
        /// <summary>
        ///     Send the Bind command
        /// </summary>
        /// <param name="destination"></param>
        /// <param name="pipe"></param>
        /// <param name="incSeqnum"></param>
        protected void SendBind([NotNull] Own destination, [NotNull] Pipe pipe, bool incSeqnum = true)
        {
            if (incSeqnum)
            {
                destination.IncSeqnum();
            }

            this.SendCommand(new Command(destination, CommandType.Bind, pipe));
        }
コード例 #2
0
ファイル: ZObject.cs プロジェクト: NotHuza/Cerberus-v4
        /// <summary>
        ///     Send the Plug command, incrementing the destinations sequence-number if incSeqnum is true.
        /// </summary>
        /// <param name="destination">the Own to send the command to</param>
        /// <param name="incSeqnum">
        ///     a flag that dictates whether to increment the sequence-number on the destination (optional -
        ///     defaults to false)
        /// </param>
        protected void SendPlug([NotNull] Own destination, bool incSeqnum = true)
        {
            if (incSeqnum)
            {
                destination.IncSeqnum();
            }

            this.SendCommand(new Command(destination, CommandType.Plug));
        }
コード例 #3
0
ファイル: ZObject.cs プロジェクト: NotHuza/Cerberus-v4
 /// <summary>
 ///     Send the Own command, and increment the sequence-number of the destination
 /// </summary>
 /// <param name="destination">the Own to send the command to</param>
 /// <param name="obj">the object to Own</param>
 protected void SendOwn([NotNull] Own destination, [NotNull] Own obj)
 {
     destination.IncSeqnum();
     this.SendCommand(new Command(destination, CommandType.Own, obj));
 }