Hi
I am creating UDP socket for a UDP client and sending UDP packets with different port numbers and wait for the reply from the destination for certain amount of time.
My doubt is .. Is it possible to re-bind a UDP socket to multiple port numbers(even IP-address) to the same socket FD without closing the socket ?? (I cant use RAW sockets :()
EDIT1: I have tried to bind two different socket file descriptors with same IP-Address and Portnumber but I have mixed results .. (For both socket file descriptors I am setting SO_REUSEADDR option).
In Linux kernel 2.6.8
First Socket FD - binds successfully.
Second Socket FD: Returns error 98 saying Address already in use.
In Linux Kernel 2.6.24
First Socket FD: binds successfully
Second Socket FD: binds successfully