Are C socket descriptor returned by socket() function unique ? I called this from two programs simultaneously and i got the same output
(socDes = socket(PF_INET, SOCK_MRP, 0)
printf("%d",socDes);
According to its man page, socket() returns a file descriptor for New socket
if two programs have same socket, how the received packets gets transferred to different process ? Any elaboration will be helpful.