uip spit output

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

uip spit output

622 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by nkarakotas on Thu Jun 09 12:46:26 MST 2011
Hi,

Im serving files from an SDCARD to the http server implemented by uip. When the file is large I use the split output due to the delay output. But this doesnt seem to split the output. I have debuged it and noticed that it will never enter the following if statement where all the splitting is done:

[PHP]
  /* We only try to split maximum sized TCP segments. */
  if(BUF->proto == UIP_PROTO_TCP &&
     uip_len == UIP_BUFSIZE - UIP_LLH_LEN) {
....(splitting done here)
}
[/PHP]

uip_len is always less than the UIP_BUFSIZE - UIP_LLH_LEN by a few bytes.

Has anyone stabled across this problem?

Regards,
Nick
0 项奖励
回复
0 回复数