-
February 20th, 2010, 08:47 AM
#1
GetPeerNameEx: Alternative Methods for VC++ 6.0
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
-
February 20th, 2010, 09:11 AM
#2
Re: GetPeerNameEx: Alternative Methods for VC++ 6.0
VC6 is over 10 years old. Check if VC6 is actually capable of doing IP6.
-
February 20th, 2010, 09:28 AM
#3
Re: GetPeerNameEx: Alternative Methods for VC++ 6.0
VC++ 6.0 support ipv6 with SDK installed.
I have tested and run examples ipv6
The question is still pending.
Thanks
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|