Receiving multiple packet TCP data with Colfire Lite

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

Receiving multiple packet TCP data with Colfire Lite

2,617 次查看
vier_kuifjes
Senior Contributor I
I am writing a Coldfire Lite application based on application note AN3518 (HTTP client). My current application does 2 consecutive HTTP GET requests to receive the data I need.

But I want to receive the required data in a different way, using one HTTP POST request.

AN3518 does not contain the HTTP POST request so I wrote this myself. This works fine, but my current problem is that the received data is contained in 3 TCP packets that have to be reassembled into the actual data. I have no idea if Coldfire Lite has this functionality implemented or not. If anyone has experience with this please let me know.

I am also looking for information about TCP packets. What's inside the header? How does the hand shaking work? Any info is greatly appreciated!
标签 (1)
0 项奖励
回复
4 回复数

1,176 次查看
vier_kuifjes
Senior Contributor I
Thanks.
Actually coldfire lite does reassemble the data in the packages automatically. While I was debugging the program, I stopped the program to see what was in the receive buffer, but I did this when only the first package was received, which made it look like all the rest of the data got lost.
My mistake...:smileysad:
0 项奖励
回复

1,176 次查看
vier_kuifjes
Senior Contributor I
OK, it looks like Coldfire Lite does handle fragmented data automatically, so I won't have to bother about this anymore.

Still, any info about packets is still welcome!
0 项奖励
回复

1,176 次查看
JimDon
Senior Contributor III
I assume you mean TCP/IP packets.

If I Google "tcp tutorial", I get over 2 million hits. One of these will perhaps answer your question.
BTW It is part of the TCP spec that it must reassemble fragments and deliver them in order. If TCP is supported, it is a given that this is the case.

If that is not what you mean, be more specific.



0 项奖励
回复

1,176 次查看
NT
Contributor I
Marc VDH
 
You might try  wireshark to get information  inside the header.
 
NT
0 项奖励
回复