title: Need file descriptor for socket in UDP
body: <p>In my tcp program i have an int called fd, fd is set = to the file descriptor returned when accept() is called. I now want to make this code be udp instead of tcp, but udp has no accept() so how do i get the value accept() would have returned, but in udp?</p>