for(i = 0; i < HTTPD_CONF_NUMCONNS; ++i) { conns[i].state = HTTP_DEALLOCATED; }
alloc_state(void){  u8_t i;  for(i = 0; i < HTTPD_CONF_NUMCONNS; ++i) {    if(conns[i].state == HTTP_DEALLOCATED) {      return &conns[i];    }  }  return NULL;}