[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [patch #5926] Use function pointers instead of table index

From: Frédéric Bernon
Subject: [lwip-devel] [patch #5926] Use function pointers instead of table index in api_lib/api_msg
Date: Thu, 10 May 2007 15:50:04 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv: Gecko/20070309 Firefox/

Follow-up Comment #2, patch #5926 (project lwip):

I we don't need TCP, but we need the sockets API, I propose to patch
lwip_sendto like this :

  if (sock->conn->type==NETCONN_TCP)
    return lwip_send( s, data, size, flags);
    sock_set_errno(sock, err_to_errno(ERR_ARG));
    return -1;    
#endif /* LWIP_TCP */

I will avoid to link lwip_send, netconn_write, do_write...

Same thing for lwip_send (if only TCP is need):

  if (sock->conn->type!=NETCONN_TCP)     
    return lwip_sendto( s, data, size, flags, NULL, 0);
    sock_set_errno(sock, err_to_errno(ERR_ARG));
    return -1;    


Reply to this item at:


  Message posté via/par Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]