Follow-up Comment #3, patch #5687 (project lwip):

Isn't be better to directly use the api_msg, without using the api_msg* ?

There is more changes, but call would be a little bit simplest. Example with
netconn_disconnect:

err_t
netconn_disconnect(struct netconn *conn)
{
  struct api_msg msg;
  
  if (conn == NULL) {
    return ERR_VAL;
  }

  msg.type = API_MSG_DISCONNECT;
  msg.msg.conn = conn;  
  api_msg_post(&msg);
  sys_mbox_fetch(conn->mbox, NULL, 0);
  return conn->err;
}



    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?5687>

_______________________________________________
  Message posté via/par Savannah
  http://savannah.nongnu.org/



_______________________________________________
lwip-devel mailing list
[EMAIL PROTECTED]
http://lists.nongnu.org/mailman/listinfo/lwip-devel

Reply via email to