Query on Accept Socket.

Venkata Rajesh Velamakanni (rajesh.venkata@wipro.com)
Wed, 28 Jun 2000 20:10:56 +0530


Hello All,

This is regarding a query on Accept Socket.

newsocket = accept(originalsocket, struct sockaddr *addr, int *addrlen);

When "accept" succeeded and created a newsocket, whose local port
is same as the original socket.

I would like to know whether this is the intended behaviour??
(i.e whether newsocket should have a different port or the same port)

On a single machine the situation may happen that both the
sockets will be listening on the same port & IP address.

Awaiting your reply

Thanks & Regards,
Rajesh.
~

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/