Re: ip level NKE : Parse out data in HTTP POST request
Re: ip level NKE : Parse out data in HTTP POST request
- Subject: Re: ip level NKE : Parse out data in HTTP POST request
- From: "Quinn \"The Eskimo!\"" <email@hidden>
- Date: Mon, 14 May 2012 11:04:33 +0100
On 14 May 2012, at 05:58, Arjun SM wrote:
> As I understand, data can be distributed over multiple packets.
That's correct.
> My question is that, how do i keep track of the packets for specific HTTP POST request so that I don't miss out on the data ?
This isn't much fun to do from an IP-level NKE. You have to keep track of TCP connections (based on the standard 4-uple of source address + dest address + source port + dest port) and use that to retain connection state information for each connection.
It's much easier to do with a socket-level NKE, where you get the chance to associate your state data with each socket (see the TCPLogEntry structure in the tcplognke sample).
Share and Enjoy
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden