In article <1191945317.598746.14580@57g2000hsv.googlegroups.c om>,
Markus <markus.hofmann@gmail.com> wrote:
> My other question I still have problems because I was thinking that on
> the application layer for example only HTTP data are received. The IP
> and port and the transport kind (TCP/UDP/ICMP) are removed. But there
> must be still a problem in my logic.
When you create and bind a socket you specify the transport protocol and
the port number that it should use, or you can let the stack find an
unused port number (you can use getsockname() to find out what it
chose). These aren't returned because they're implicit in which socket
the data is received on.
--
Barry Margolin,
barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***