mirror of
https://github.com/oe7drt/YSFClients.git
synced 2026-04-07 15:24:00 +00:00
IPv6 cleanups.
This commit is contained in:
parent
bcb01d3fb2
commit
1fcf92a0fc
5 changed files with 274 additions and 148 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue