Struct communications

Passes a struct between the client and the server.

Still sending/receiving duplicate messages