LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Embedded & Single-board computer (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/)
-   -   Leach RCAgent error (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/leach-rcagent-error-4175454035/)

najma 03-14-2013 06:08 AM

Leach RCAgent error
 
Hi, i m trying modify send and recv functions of leach protocol to send base station-CH distance along with the node distance when sending cluster-head advertisements. i m using ns-2.29 mannasim but when i modify the send function of cluster head advertisement i get this error message.
mannasim/leach/rca/rcagent.cc:189: error: no matching function for call to ‘LeachApp::recv(int&, double&, int&, int&, char* const, int&, int&, int&)’

line189 rcagent.cc: ((LeachApp *) app_)->recv(packetMsg_, distEst_, rca_hdr->rca_link_dst(), hdr->size(), rca_hdr->meta(),
rca_hdr->meta_size(), rca_hdr->rca_mac_src(), rca_hdr->rca_link_src());

Can anyone guide how to resolve this issue?

regards,
Najma


All times are GMT -5. The time now is 09:55 AM.