コード例 #1
0
        public override void acceptProposal(EnergyAcceptMessage message)
        {
            if (OnProposalAccepted != null)
            {
                OnProposalAccepted(message);
            }

            base.acceptProposal(message);
        }
コード例 #2
0
        public static EnergyAcceptMessage createEnergyAcceptMessage(Guid SessionID, string dest, string source, string pName, float qEnergy)
        {
            EnergyAcceptMessage message = new EnergyAcceptMessage()
            {
                header   = Tools.getHeader(dest, source, SessionID),
                peerName = pName,
                energy   = qEnergy
            };

            return(message);
        }
コード例 #3
0
 public virtual void acceptProposal(EnergyAcceptMessage message)
 {
     //foo;
 }