void tcp_slowtmr(void)每500ms调用,该函数完成了超时重传,tcp保活功能,并会遍历active和timewait链表的PCB,删除那些超时或者出错的PCB,同时将PCB中unsent队列中的数据发送出去。一般使用tcp_write();写入数据后,数据不会马上发送,而是在定时任务中发送。 1,超时重传 重点的代码注释如下: //请求连接次数超出限制 if...
I have been having a problem in the tcp_slowtmr() function in tcp.c. I have been using the raw api for a quite a while to implement TCP servers listening on several different ports. I have not really had any problems so far. Recently I have also implemented TCP client connection which...