Report
1 month ago.

How to make restart UDP Socket if cable was unpluged?

Hello,

I have UDP communication with Static IP between two NucleoF767ZI and encountered problem if I unplug cable and plug it again Ethernet communication never restores.

Can anybody advice how to check if connection was lost? (may be through mbedEvents) and how to restart UDP Socket ?

Thank you, Daniel

Comment on this question

2 Answers

5 days, 23 hours ago.

So, UDP is just fire-and-forget, so there's not really a thing as 'restarting a socket'. There's no communication between the two nodes to set up the connection.

If you need to be sure that the communication channel is still there, use TCP and look for the error codes when calling send/recv (or use the events that the socket gives you).

At the moment need to use UDP, so will need to think about another solution. Thank you for reply.

posted by Daniel Klioc 14 Nov 2017
5 days, 18 hours ago.

Hi Daniel, This is Natasha sorry to say that i have no idea how to restart UDP Socket? but i know this site https://www.assignmentglobe.com/ give you a best answer please visit and tell your problem. Thank you :)


To post an answer, please log in.