Monday, February 21, 2005

MiSPO : I will use their development package, NORTi SH7616, with Renesas Super H C/C++ compiler for uITRON. It has a good simulator for uITRON, NORTi Simulator, and I will be able to debug the application only on Windows platform without the hardware. The TCP/IP library is based on the TRON specification that doesn't support multicast network, but the APIs are extended to support the multicast functions as the following.
T_UDP_CCEP udp_cep = {0, {IPV4_ADDRANY, UDP_PORTANY}, NULL};
UB ipaddr[] = { 225, 6, 7, 8 };
T_IPV4EP addr;
udp_cre_cep(cepid, &udp_cep);
dstaddr.ipaddr = byte4_to_long(ipaddr);
dstaddr.portno = UDP_PORT_NO;
udp_snd_dat(cepid, &dstaddr, &pkt, sizeof(pkt), TMO_FEVR);
addr.ipaddr = byte4_to_long(ipaddr);
addr.portno = 1100;
udp_set_opt(cepid, IP_ADD_MEMBERSHIP, (VP)&addr, sizeof(mreq));
udp_rcv_dat(cepid, &dstaddr, &pkt, sizeof(pkt), TMO_FEVR);
udp_set_opt(cepid, IP_DROP_MEMBERSHIP, (VP)&addr, sizeof(mreq));

Comments: Post a Comment

<< Home

This page is powered by Blogger. Isn't yours?