[update] the "event_callback" will be change by RT-Thread dfs.
This commit is contained in:
parent
da1302cbda
commit
9f45c13ac9
|
@ -531,7 +531,8 @@ lwip_accept(int s, struct sockaddr *addr, socklen_t *addrlen)
|
|||
return -1;
|
||||
}
|
||||
LWIP_ASSERT("invalid socket index", (newsock >= LWIP_SOCKET_OFFSET) && (newsock < NUM_SOCKETS + LWIP_SOCKET_OFFSET));
|
||||
// LWIP_ASSERT("newconn->callback == event_callback", newconn->callback == event_callback);
|
||||
/* RT-Thread has changed callback when using BSD socket API, so remove this assert. */
|
||||
/* LWIP_ASSERT("newconn->callback == event_callback", newconn->callback == event_callback); */
|
||||
nsock = &sockets[newsock - LWIP_SOCKET_OFFSET];
|
||||
|
||||
/* See event_callback: If data comes in right away after an accept, even
|
||||
|
|
|
@ -531,7 +531,8 @@ lwip_accept(int s, struct sockaddr *addr, socklen_t *addrlen)
|
|||
return -1;
|
||||
}
|
||||
LWIP_ASSERT("invalid socket index", (newsock >= LWIP_SOCKET_OFFSET) && (newsock < NUM_SOCKETS + LWIP_SOCKET_OFFSET));
|
||||
LWIP_ASSERT("newconn->callback == event_callback", newconn->callback == event_callback);
|
||||
/* RT-Thread has changed callback when using BSD socket API, so remove this assert. */
|
||||
/* LWIP_ASSERT("newconn->callback == event_callback", newconn->callback == event_callback); */
|
||||
nsock = &sockets[newsock - LWIP_SOCKET_OFFSET];
|
||||
|
||||
/* See event_callback: If data comes in right away after an accept, even
|
||||
|
|
Loading…
Reference in New Issue