CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2008
    Posts
    20

    Post 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

  2. #2
    Join Date
    Sep 2004
    Location
    Holland (land of the dope)
    Posts
    4,123

    Re: GetPeerNameEx: Alternative Methods for VC++ 6.0

    What do you recommend?
    VC6 is over 10 years old. Check if VC6 is actually capable of doing IP6.

  3. #3
    Join Date
    Jun 2008
    Posts
    20

    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
  •  





Click Here to Expand Forum to Full Width

Featured