RasCEN wrote: ↑Wed Sep 18, 2019 9:36 am
i want to create a UDP connection between two Raspberry pi, using python in both sides what i want to do.
You cannot create a UDP "connection", that's not how it works. You probably want TCP (a Connection Oriented Transport Service).
UDP is individual, unrelated, datagrams. Furthermore, there is no guarantee of delivery or even the order of delivery.
So you will have to manage the acknowledgements and sequence numbers etc by hand.
TCP will do all that for you.
You could start by reading "man socket" which is for the C library but the Python library will be similar.
Even with TCP, you may still need ACK's but in this case they would simply confirm that the data has been received and acted upon (perhaps a received text file has been successfully written to disk, or the LED is actually lit).