//tcp_echoserver_send(tpcb, es); // send back received data tcp_recved(tpcb, p->tot_len); // added bymc pbuf_free(p); // added bymc es->p = NULL; // added bymc } else { struct pbuf *ptr; // chain pbufs to the end of what we recv'ed previously ptr = es->p; pbuf...
tcp_close(tpcb);returnERR_OK; }/* all we do is say we've received the packet *//* we don't actually make use of it */tcp_recved(tpcb, p->tot_len); pbuf_free(p);returnERR_OK; } 开发者ID:ThePotatoGroup,项目名称:TCP-Embedded-Audio,代码行数:16,代码来源:rxperf.c 示例6: sink...
}free(recdata);//-- commented out bymc//tcp_echoserver_send(tpcb, es); // send back received datatcp_recved(tpcb, p->tot_len);// added bymcpbuf_free(p);// added bymces->p =NULL;// added bymc}else{structpbuf *ptr;// chain pbufs to the end of what we recv'ed previously...
//-- commented out bymc // tcp_echoserver_send(tpcb, es); // send back the received data (echo) tcp_recved(tpcb, p->tot_len); // added bymc pbuf_free(p); // added bymc es->p = NULL; // added bymc ret_err = ERR_OK; } else if (es->state == ES_RECEIVED) { // ...