hi, i need help with my homework. i have a sender and a receiver (both uses UDP). my teacher wants us to make the receiver 'dynamically' bind to a port and then 'announce' that port so that the sender would know where to send (we're supposed to use bind() and getsockname() to achieve this). my questions: what exactly is meant by dynamic binding? and how do i use bind() and getsockname() for 'dynamic binding.' i read the man pages for these functions but none mentions 'dynamic binding'
thanks in advance.