Dear all,

I have a problem with UDPEcho. I have modified it to use in my scenario
which is kind of routing, when I compile it I have an error. here is the
error:

*UDPEchoP.nc : implicit declaration of function `inet6_aton'*

here is my code:

*inet6_aton ("2001:470:1f04:56d::3", dest_sock.sin6_addr);*

what should I do about that?

and I have the other question, I have used UDP interface like below:

       * interface UDP as UDPMsg*
then I want to send and receive UDP packets which I have to write as an
event.

       *event void UDPMsg.recvfrom(struct sockaddr_in6 *from, void
*data,...)*

In the above event I want to use the data and modify it, so I need to access
the data. Is it possible that I write my codes as below:

*for example:*
*
*
        *nx_struct udp_report UDPMsg1;*
*        unit16_t Temp;*
*        Temp = UDPMsg1.Etemp*
*         ...*
**
which prior to the above I already modified udp report and have added Etemp
in the header file.
Or is there another way of accessing the data and do modification?

any help will be appreciated

Best regards,

Hamidreza
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to