uip udp
Hello everyone,
I'm looking for a UDP demo using the uip stack. I'm using the LM3S8962 demo kit.
I have tried to open a UDP connection with the following code:
------------------- uip_ipaddr_t addr; struct uip_udp_conn *c; uip_ipaddr(addr, 192,168,2,1); c = uip_udp_new(addr, HTONS(12345)); if(c != NULL) { uip_udp_bind(c, HTONS(12344)); } --------------------
I'm getting the following errors: 1. enet_uip_bas.c(453): error: #167: argument of type "u16_t *" is incompatible with parameter of type "uip_ipaddr_t *" 2. enet_uip_bas.c(454): error: #20: identifier "NULL" is undefined 3. enet_uip_bas.c(455): error: #393: pointer to incomplete class type is not allowed
Can someone point me in the correct direction.
Greetings from the Netherlands.
Bastiaan Wit
login or register to reply
|