Added protocol and serialization
Using protocol in tcp server/client