src/java.base/windows/native/libnet/net_util_md.c
changeset 52499 768b1c612100
parent 52073 1c8745e31fa3
child 53422 6f02e036630e
equal deleted inserted replaced
52498:c3066f7465fa 52499:768b1c612100
   583  * call to bind() will suffice. The other socket is closed in this case.
   583  * call to bind() will suffice. The other socket is closed in this case.
   584  *
   584  *
   585  * The more complicated case is when the requested address is ::0 or 0.0.0.0.
   585  * The more complicated case is when the requested address is ::0 or 0.0.0.0.
   586  *
   586  *
   587  * Two further cases:
   587  * Two further cases:
   588  * 2. If the reqeusted port is 0 (ie. any port) then we try to bind in v4 space
   588  * 2. If the requested port is 0 (ie. any port) then we try to bind in v4 space
   589  *    first with a wild-card port argument. We then try to bind in v6 space
   589  *    first with a wild-card port argument. We then try to bind in v6 space
   590  *    using the returned port number. If this fails, we repeat the process
   590  *    using the returned port number. If this fails, we repeat the process
   591  *    until a free port common to both spaces becomes available.
   591  *    until a free port common to both spaces becomes available.
   592  *
   592  *
   593  * 3. If the requested port is a specific port, then we just try to get that
   593  * 3. If the requested port is a specific port, then we just try to get that