Lines Matching refs:buf
27 struct netbuf *buf; in udpecho_entry() local
43 buf = netconn_recv(conn); in udpecho_entry()
45 netconn_recv(conn, &buf); in udpecho_entry()
47 if(buf == NULL) in udpecho_entry()
51 addr = netbuf_fromaddr(buf); in udpecho_entry()
52 port = netbuf_fromport(buf); in udpecho_entry()
59 buf->addr = RT_NULL; in udpecho_entry()
61 buf->addr = *IP_ADDR_ANY; in udpecho_entry()
64 netconn_send(conn, buf); in udpecho_entry()
67 netbuf_delete(buf); in udpecho_entry()
169 struct netbuf *buf; in tcpecho_entry() local
173 while((buf = netconn_recv(newconn)) != NULL) in tcpecho_entry()
175 while((err = netconn_recv(newconn, &buf)) == ERR_OK) in tcpecho_entry()
180 netbuf_data(buf, &data, &len); in tcpecho_entry()
186 }while(netbuf_next(buf) >= 0); in tcpecho_entry()
188 netbuf_delete(buf); in tcpecho_entry()