• AVR Freaks

Hot!Harmony TCP migration from IPv4 to IPv6

Author
kmurdough
New Member
  • Total Posts : 1
  • Reward points : 0
  • Joined: 2020/05/22 11:24:48
  • Location: 0
  • Status: offline
2020/05/27 06:54:27 (permalink)
0

Harmony TCP migration from IPv4 to IPv6

I currently use Harmony V2.06's TCPIP stack which is configured to work using IPv4. It is modeled after the TCPIP_tcp_server example code. I am now trying to migrate to IPv6. Through the configurator I have additionally enabled IPv6 then generated the code. Also, I have looked at the documentation and tried using the pic32_eth_web_server example without much success. The end goal is to use IPv6 to connect to a separate web application. Could someone provide us with an example of how to do this migration?
#1

1 Reply Related Threads

    rainad
    Moderator
    • Total Posts : 1397
    • Reward points : 0
    • Joined: 2009/05/01 13:39:25
    • Location: 0
    • Status: online
    Re: Harmony TCP migration from IPv4 to IPv6 2020/05/27 14:43:17 (permalink)
    5 (2)
    For a server socket it is very simple. Just open the socket with:
    TCPIP_TCP_ServerOpen(IP_ADDRESS_TYPE_ANY, localPort, 0);
    This way it will accept either IPv4 or IPv6 connections.
    The HTTP_NET uses the sockets this way, so if the IPv6 is enabled and you point a browser to the PIC board using an IPv6 address, it should just work without any changes.
     
    #2
    Jump to:
    © 2020 APG vNext Commercial Version 4.5