IPv6 cleanups.

This commit is contained in:
Jonathan Naylor 2020-09-06 13:17:49 +01:00
parent bcb01d3fb2
commit 1fcf92a0fc
5 changed files with 274 additions and 148 deletions

View file

@ -53,8 +53,7 @@ bool CNetwork::open()
bool status = false;
unsigned int af[] = {AF_INET, AF_INET6};
for (int i = 0; i < UDP_SOCKET_MAX &&
i < (sizeof(af) / sizeof(unsigned int)); i++)
for (unsigned int i = 0U; i < UDP_SOCKET_MAX && i < (sizeof(af) / sizeof(unsigned int)); i++)
status |= m_socket.open(i, af[i], "", m_port);
return status;