All problems in computer science can be solved by another level of indirection,
except for the problem of too many layers of indirection.
– David J. Wheeler
I don't want that two threads print out something on the screen at the same time
Hi everybody,
I found the error. I used the function recevfrom and the last two paramaters are a pointer to a buffer in a sockaddr structure that will hold the source address upon return and the length. My error was that I wrote there the address structure that I wanted to use later...Of course the recevfrom copies other values there....