While trying the following the address in the second sockaddr changes:
/*Stuff*/
sockaddr add1, add2;
recvfrom(/*socket*/, /*buffer*/, /*count*/, /*flag*/, &add1, /*fromlen*/);
add2 = add1; //The sa_data - part changes O_o...
/*Stuff*/
Anyone knows why?...
EDIT: 1.I changed the sockaddr to sockaddr_storage which definetly has enough space for sockaddr_in!! 2. I memset the structure to zero on initialization 3. I wrote a copy ruitine for my copy/assignment wishes:
memcpy(&AddrTarget, &AddrSource, sizeof(sockaddr_storage));
But this does not help, too!... Im desperate:(...