lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-users] http server: receiving more than one packet


From: Bernhard 'Gustl' Bauer
Subject: [lwip-users] http server: receiving more than one packet
Date: Thu, 28 Jan 2010 08:13:13 +0100
User-agent: Thunderbird 2.0.0.23 (Windows/20090812)

Hi,

sometimes a http transfer uses several packets. So I must know when the last packet is received to start answering. So far I search 'Content-Length' in the 1st packet and subtract the length of each packet. This causes problems if the string is not in the 1st packet, or the transmission is terminated from the remote side.

Is there any other way to recognize the last packet?

I think the err callback is called when remote terminates a connection. Is this correct?

TIA

Gustl





reply via email to

[Prev in Thread] Current Thread [Next in Thread]