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:
Code:
 
                                DWORD m_dwIP; //ipv4
                                CString strIP;
				UINT uPort;
				m_sockControl.GetPeerName(strIP, uPort);
				m_dwIP = MakeIP(strIP);//MakeIP: return DWORD
and I need to change it to(ipv6):
Code:
                                IN6_ADDR m_dwIP;
                                CString strIP;
				UINT uPort;
				m_sockControl.GetPeerNameEx(strIP, uPort);
				m_dwIP = MakeIP(strIP);//MakeIP: return IN6_ADDR
But there's not method "GetPeerNameEx" in MFC Visual C++ 6.0
What do you recommend?

Any help would be great. Thanks in advance