|
|
| 243 |
{ |
243 |
{ |
| 244 |
m_endPoint = m_udp->Allocate (ipv4, port); |
244 |
m_endPoint = m_udp->Allocate (ipv4, port); |
| 245 |
} |
245 |
} |
|
|
246 |
if (0 == m_endPoint) |
| 247 |
{ |
| 248 |
m_errno = port ? ERROR_ADDRINUSE : ERROR_ADDRNOTAVAIL; |
| 249 |
return -1; |
| 250 |
} |
| 246 |
} |
251 |
} |
| 247 |
else if (Inet6SocketAddress::IsMatchingType (address)) |
252 |
else if (Inet6SocketAddress::IsMatchingType (address)) |
| 248 |
{ |
253 |
{ |
|
|
| 265 |
{ |
270 |
{ |
| 266 |
m_endPoint6 = m_udp->Allocate6 (ipv6, port); |
271 |
m_endPoint6 = m_udp->Allocate6 (ipv6, port); |
| 267 |
} |
272 |
} |
|
|
273 |
if (0 == m_endPoint6) |
| 274 |
{ |
| 275 |
m_errno = port ? ERROR_ADDRINUSE : ERROR_ADDRNOTAVAIL; |
| 276 |
return -1; |
| 277 |
} |
| 268 |
} |
278 |
} |
| 269 |
else |
279 |
else |
| 270 |
{ |
280 |
{ |