Home arrow Support arrow Forums

Luminary Micro Forums

bastiaan_wit

Fresh Boarder
Click here to see the profile of this user

2008/09/19 18:34

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

awneil

Expert Boarder
Click here to see the profile of this user

2008/09/20 09:01

Re:uip udp

bastiaan_wit wrote:
1. enet_uip_bas.c(453): error: #167: argument of type "u16_t *" is incompatible with parameter of type "uip_ipaddr_t *"
So have you checked the definitions of u16_t and uip_ipaddr_t?
Should they be compatible?

2. enet_uip_bas.c(454): error: #20: identifier "NULL" is undefined
So define it!

3. enet_uip_bas.c(455): error: #393: pointer to incomplete class type is not allowed
What line, precisely, gives that error?

Might it be a result of any/all of the other errors...?

login or register to reply