Lines Matching defs:lastdata
309 union lwip_sock_lastdata *lastdata);
310 static void free_socket_free_elements(int is_tcp, struct netconn *conn, union lwip_sock_lastdata *lastdata);
390 union lwip_sock_lastdata lastdata;
401 freed = free_socket_locked(sock, is_tcp, &conn, &lastdata);
407 free_socket_free_elements(is_tcp, conn, &lastdata);
532 sockets[i].lastdata.pbuf = NULL;
552 * @param is_tcp != 0 for TCP sockets, used to free lastdata
554 * @param lastdata lastdata is stored here, must be freed externally
558 union lwip_sock_lastdata *lastdata)
571 *lastdata = sock->lastdata;
572 sock->lastdata.pbuf = NULL;
581 free_socket_free_elements(int is_tcp, struct netconn *conn, union lwip_sock_lastdata *lastdata)
583 if (lastdata->pbuf != NULL) {
585 pbuf_free(lastdata->pbuf);
587 netbuf_delete(lastdata->netbuf);
600 * @param is_tcp != 0 for TCP sockets, used to free lastdata
607 union lwip_sock_lastdata lastdata;
613 freed = free_socket_locked(sock, is_tcp, &conn, &lastdata);
618 free_socket_free_elements(is_tcp, conn, &lastdata);
807 LWIP_ASSERT("sock->lastdata == NULL", sock->lastdata.pbuf == NULL);
947 * Keeps sock->lastdata for peeking or partly copying.
968 LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recv_tcp: top while sock->lastdata=%p\n", (void *)sock->lastdata.pbuf));
970 if (sock->lastdata.pbuf) {
971 p = sock->lastdata.pbuf;
996 sock->lastdata.pbuf = p;
1029 sock->lastdata.pbuf = pbuf_free_header(p, copylen);
1030 LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recv_tcp: lastdata now pbuf=%p\n", (void *)sock->lastdata.pbuf));
1032 sock->lastdata.pbuf = NULL;
1116 * Keeps sock->lastdata for peeking.
1136 LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recvfrom_udp_raw[UDP/RAW]: top sock->lastdata=%p\n", (void *)sock->lastdata.netbuf));
1138 buf = sock->lastdata.netbuf;
1150 sock->lastdata.netbuf = buf;
1218 /* If we don't peek the incoming message: zero lastdata pointer and free the netbuf */
1220 sock->lastdata.netbuf = NULL;
1930 void *lastdata = sock->lastdata.pbuf;
1938 if (readset_in && FD_ISSET(i, readset_in) && ((lastdata != NULL) || (rcvevent > 0))) {
2292 void* lastdata = sock->lastdata.pbuf;
2319 if ((fds[fdi].events & POLLIN) != 0 && ((lastdata != NULL) || (rcvevent > 0))) {
3851 if (sock->lastdata.netbuf) {
3852 nb = sock->lastdata.netbuf;
3860 sock->lastdata.netbuf = rxbuf;
3877 if (sock->lastdata.netbuf) {
3879 recv_avail += sock->lastdata.pbuf->tot_len;
3881 recv_avail += sock->lastdata.netbuf->p->tot_len;