Reputation: 1
I'm writing a program in qt_c++ which is connected to a tester through a tcp connection. Each side has two ips and all four lan cables (2 from each side) are connected to a switch. Ips are in same range. And each ips make connection to both ips on the other side. Ips in client side : 192.168.1.24 and 1.25 My problem is when the socket with ip 1.24 is disconnected the ip 1.25 is also disconnected. In code while sending a message socket with ip 1.24 is firstly checked and if it is not connected, the socket with ip 1.25 is checked. I should add if the ip 1.24 is not connected from the program start up l, the connection with ip 1.25 works properly.
I set keepalive option because chatgpt offered and it doesn't work !
Thanks in advance:)
Upvotes: 0
Views: 8