LinuxQuestions.org

LinuxQuestions.org (http://www.linuxquestions.org/questions/index.php)
-   Linux - Embedded & Single-board computer (http://www.linuxquestions.org/questions/forumdisplay.php?f=78)
-   -   Leach RCAgent error (http://www.linuxquestions.org/questions/showthread.php?t=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 05:37 AM.