I need alternative to CAsyncSocket::GetPeerNameEx(class Cstring &, unsigned int& ) in Visual C++ 6.0 with SDK installed.
I am migrating an application from IPv4 to IPv6.
The code (ipv4) as follows:
and I need to change it to(ipv6):Code:DWORD m_dwIP; //ipv4 CString strIP; UINT uPort; m_sockControl.GetPeerName(strIP, uPort); m_dwIP = MakeIP(strIP);//MakeIP: return DWORD
But there's not method "GetPeerNameEx" in MFC Visual C++ 6.0Code:IN6_ADDR m_dwIP; CString strIP; UINT uPort; m_sockControl.GetPeerNameEx(strIP, uPort); m_dwIP = MakeIP(strIP);//MakeIP: return IN6_ADDR
What do you recommend?
Any help would be great. Thanks in advance





Reply With Quote
