Subject: Re: [Boost-users] [getting IP-header]How do I get the IP-header information
From: Jonathan Franklin (franklin.jonathan_at_[hidden])
Date: 2009-10-29 11:53:52


On Thu, Oct 29, 2009 at 9:10 AM, Mats Carlsson <m.mcaber_at_[hidden]> wrote:
> I'm trying to get the IP-header information from an IP-message sent
> using boost.

Which fields are you looking for? If you just want information about
the remote (client) host, you can get that via the asio api when a
connection is made.

If you're looking for more than that, then you need "raw" sockets, a
la libpcap. The "regular" sockets api is at a higher level than
network/transport protocol headers.

Jon