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
|