Receiving multiple packet TCP data with Colfire Lite

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Receiving multiple packet TCP data with Colfire Lite

2,602件の閲覧回数
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,161件の閲覧回数
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,161件の閲覧回数
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,161件の閲覧回数
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,161件の閲覧回数
NT
Contributor I
Marc VDH
 
You might try  wireshark to get information  inside the header.
 
NT
0 件の賞賛
返信