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/