MODBUS/tcp断开

[复制链接]
 楼主| jhbang 发表于 2011-11-10 09:27 | 显示全部楼层
是不是应该在tcp_write之前应该检查队列是否满,内存是否够啊,然后再tcp_write()
TI_MCU 发表于 2011-11-10 09:43 | 显示全部楼层
有1.3.2版本的可以试试~ LWIP代码这么多,我也没怎么用过的。我看了下tcp_output定义,根据上面注释的意思,应该只是TCP局部函数,用户不需要管的吧?

  1. /* Only used by IP to pass a TCP segment to TCP: */
  2. void             tcp_input   (struct pbuf *p, struct netif *inp);
  3. /* Used within the TCP code only: */
  4. err_t            tcp_send_empty_ack(struct tcp_pcb *pcb);
  5. err_t            tcp_output  (struct tcp_pcb *pcb);
  6. void             tcp_rexmit  (struct tcp_pcb *pcb);
  7. void             tcp_rexmit_rto  (struct tcp_pcb *pcb);
  8. void             tcp_rexmit_fast (struct tcp_pcb *pcb);
  9. u32_t            tcp_update_rcv_ann_wnd(struct tcp_pcb *pcb);
zlr521mjb 发表于 2015-6-8 16:47 | 显示全部楼层
轻轻巧巧·
1021256354 发表于 2015-8-28 09:38 | 显示全部楼层
LZ:可以分享一下lwip modbustcp代码么??谢谢
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 在线客服 返回列表 返回顶部
快速回复 在线客服 返回列表 返回顶部