UDP Math Server / Client in C