[SOD]Sockets fix app.
Issue: Garbage values were sent through socket
Cause: Use of char in the struct we sent back and forth
Fix: Serialize the struct in a char buffer and send it as is then deserialize it on receiving side