/* In hello-world.h we have defined the UIP_APPCALL macro to hello_world_appcall so that this funcion is uIP's application function. This function is called whenever an uIP event occurs (e.g. when a new connection is established, new data arrives, sent data is acknowledged, data needs to be retransmitted, etc.).  */
void hello_world_appcall(void)
/* In hello-world.h we have defined the UIP_APPCALL macro to hello_world_appcall so that this funcion is uIP's application function. This function is called whenever an uIP event occurs (e.g. when a new connection is established, new data arrives, sent data is acknowledged, data needs to be retransmitted, etc.).  */
void hello_world_appcall(void)
{
  struct hello_world_state *s = &(uip_conn->appstate);
  if (uip_connected())
  {
    PSOCK_INIT(&s->p, s->inputbuffer, sizeof(s->inputbuffer));
  }
  handle_connection(s);
}