Hi! I have some doubts about UDP programming. Iīve been trying to find answers, but couldīt find :( . Any link or response is much appreciated!
1) Can I send and receive using the same socket in multithread? Must I use semaphores?
2) If two hosts send something at the same time, both the datagrams will be sent, or they will be dropped? I know that UDP is a little unreliable, but can this kind of error occur, or Ethernet protocol deals with it?
Again, thanks any help. :)