Boost logo

Boost Users :

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 13:47:14


On Thu, Oct 29, 2009 at 10:30 AM, Mats Carlsson <m.mcaber_at_[hidden]> wrote:
> So is in "socket" somewhere?

Once you have "accepted" a client connection in your "server", I think
you can get the client host info by calling the
tcp::socket::remote_endpoint() method.
http://www.boost.org/doc/libs/1_40_0/doc/html/boost_asio/reference/basic_stream_socket/remote_endpoint.html

You should probably check out some basic socket and TCP/IP resources
to get a better idea of how sockets work w/ TCP/IP. Not sure what
specific resource to recommend at this point. But you can't go wrong
w/ the Stevens books.

Jon


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net