Refactor Sendto()
Refactor sizeof() in main

You should show the structure/datatype of what you pass in sizeof rather than a variable. It makes it easier to view what you want to take the sizeof()