Re: [UDT] SO_REUSEADDR
Brought to you by:
lilyco
From: Yunhong Gu <yu...@la...> - 2006-07-21 21:06:31
|
I think it is the problem of UDP with SO_REUSEADDR. When you have two UDP sockets bound to the same port, it seems there is no way to guarantee that an incoming packet goes to one socket rather than the other, becuase UDP is connectionless, it cannot use source IP:port to determine the destination socket. The outcome may depend on different system implementations. Due to the same reason, the conenction request from remote host may reach any local UDT listening socket, thus you may get wrong connection. I don't think there is any way to support SO_REUSEADDR in UDT, but if you have any idea, I would like to try. Thanks Yunhong On Fri, 21 Jul 2006 ar...@ph... wrote: > Yunhong, > > First, I'd like to complement on the UDT. > > I have a question about the SO_REUSEADDR. Does the implementation of UDT prohibit the use of SO_REUSEADDR? When I modify UDT such that I can set the SO_REUSEADDR option directly on sockets that use the same local port, to the same remote host but with diff. remote ports, I found out that I could get a connect on the wrong socket, i.e wrong remote port. > > Thanks, > > Art Pharn > |