Which Lib to use, connect to a socket with URL instead of IP address

2024-06-17
2024-06-17
  • matt-purcell - 2024-06-17

    Hello, I have a new project and I need to connect to a TCP socket using the URL instead of an explicit IP address, myendpoint@mydomain.com

    Which library is best suited for this? This is for a new enterprise project, the endpoint is a server in a datacenter running some real time application. We have big IP, it will automatically reassign the IP address to the backup server if a crash occurs so an explicit IP won't work for me. I've done this in RS logix, working now to migrate that code over to codesys.

    Thanks in advance!

     
  • matt-purcell - 2024-06-17

    I've been searching through these libraries, syssocket and net base services and they all seem to use the same structure for IP address for the connect function, SOCKADDRESS. At a glance, it doesn't look like that'll work, maybe it's just missing in the documentation somewhere?? I'm wondering if anyone has done it.

     

Log in to post a comment.