Hello, that worked for me.
But i've got another question concerning the uip_datalen() function. In my UIP_APPCALL function I try to check how much data has arrived with the latest packet. I tried the uip_datalen() function, but it says 0 no matter what kind of packet arrived. I already checked your uip_process() function, but i cannot see where you set uip_len to the data size. The only thing i saw is, that you reset the length variables to 0. Am I doing anything wrong? Thanks in advance Marc > You can use a union, something like this: > > typedef union { > struct app1_state a1; > struct app2_state a2; > struct app3_state a3; > } uip_tcp_appstate_t; > > and access the state structures through appstate->a1.var1; and so forth. > This way no extra memory is required. > > Hope this helps, > > /adam