mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-02 12:52:10 +00:00
api_msg.h, api_msg.c: Remove obsolete API_MSG_ACCEPT and do_accept (never used).
This commit is contained in:
parent
db739d16ce
commit
544e469eeb
@ -71,6 +71,9 @@ HISTORY
|
|||||||
|
|
||||||
++ Bug fixes:
|
++ Bug fixes:
|
||||||
|
|
||||||
|
2007-03-22 Frédéric Bernon
|
||||||
|
* api_msg.h, api_msg.c: Remove obsolete API_MSG_ACCEPT and do_accept (never used).
|
||||||
|
|
||||||
2007-03-22 Frédéric Bernon
|
2007-03-22 Frédéric Bernon
|
||||||
* api_lib.c: somes resources couldn't be freed if there was errors during
|
* api_lib.c: somes resources couldn't be freed if there was errors during
|
||||||
netconn_new_with_proto_and_callback.
|
netconn_new_with_proto_and_callback.
|
||||||
|
@ -635,31 +635,6 @@ do_listen(struct api_msg_msg *msg)
|
|||||||
sys_mbox_post(msg->conn->mbox, NULL);
|
sys_mbox_post(msg->conn->mbox, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
do_accept(struct api_msg_msg *msg)
|
|
||||||
{
|
|
||||||
if (msg->conn->pcb.tcp != NULL) {
|
|
||||||
switch (msg->conn->type) {
|
|
||||||
#if LWIP_RAW
|
|
||||||
case NETCONN_RAW:
|
|
||||||
LWIP_DEBUGF(API_MSG_DEBUG, ("api_msg: accept RAW: cannot accept for RAW.\n"));
|
|
||||||
break;
|
|
||||||
#endif
|
|
||||||
#if LWIP_UDP
|
|
||||||
case NETCONN_UDPLITE:
|
|
||||||
/* FALLTHROUGH */
|
|
||||||
case NETCONN_UDPNOCHKSUM:
|
|
||||||
/* FALLTHROUGH */
|
|
||||||
case NETCONN_UDP:
|
|
||||||
LWIP_DEBUGF(API_MSG_DEBUG, ("api_msg: accept UDP: cannot accept for UDP.\n"));
|
|
||||||
break;
|
|
||||||
#endif /* LWIP_UDP */
|
|
||||||
case NETCONN_TCP:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
do_send(struct api_msg_msg *msg)
|
do_send(struct api_msg_msg *msg)
|
||||||
{
|
{
|
||||||
@ -829,7 +804,6 @@ static api_msg_decode decode[API_MSG_MAX] = {
|
|||||||
do_connect,
|
do_connect,
|
||||||
do_disconnect,
|
do_disconnect,
|
||||||
do_listen,
|
do_listen,
|
||||||
do_accept,
|
|
||||||
do_send,
|
do_send,
|
||||||
do_recv,
|
do_recv,
|
||||||
do_write,
|
do_write,
|
||||||
|
@ -52,7 +52,6 @@ enum api_msg_type {
|
|||||||
API_MSG_DISCONNECT,
|
API_MSG_DISCONNECT,
|
||||||
|
|
||||||
API_MSG_LISTEN,
|
API_MSG_LISTEN,
|
||||||
API_MSG_ACCEPT,
|
|
||||||
|
|
||||||
API_MSG_SEND,
|
API_MSG_SEND,
|
||||||
API_MSG_RECV,
|
API_MSG_RECV,
|
||||||
|
Loading…
Reference in New Issue
Block a user