public override void statusAdv(StatusNotifyMessage message)
        {
            if (OnStatusChanged != null)
            {
                OnStatusChanged(message);
            }

            base.statusAdv(message);
        }
        public override void forwardEnergyRequest(StatusNotifyMessage message)
        {
            if (OnForwardEnergyRequest != null)
            {
                OnForwardEnergyRequest(message);
            }

            base.forwardEnergyRequest(message);
        }
        public override void remoteAdv(StatusNotifyMessage message)
        {
            if (OnRemoteAdv != null)
            {
                OnRemoteAdv(message);
            }

            base.remoteAdv(message);
        }
        public static StatusNotifyMessage createEnergyRequestMessage(string dest, string source, PeerStatus peerStatus, float enReq)
        {
            StatusNotifyMessage message = new StatusNotifyMessage()
            {
                header    = Tools.getHeader(dest, source),
                status    = peerStatus,
                energyReq = enReq
            };

            return(message);
        }
        public static RemoteEnergyRequest createRemoteEnergyRequestMessage(StatusNotifyMessage energyRequestMessage, string dest, string source, string resolverIP, string resolverPort)
        {
            RemoteEnergyRequest message = new RemoteEnergyRequest()
            {
                header       = Tools.getHeader(dest, source),
                enReqMessage = energyRequestMessage,
                IP           = resolverIP,
                port         = resolverPort
            };

            return(message);
        }
Esempio n. 6
0
 public virtual void forwardEnergyRequest(StatusNotifyMessage message)
 {
     //foo;
 }
Esempio n. 7
0
 public virtual void remoteAdv(StatusNotifyMessage message)
 {
     //foo;
 }
Esempio n. 8
0
 public virtual void statusAdv(StatusNotifyMessage message)
 {
     //foo;
 }