Added protocol functions.
Added function to send and receive a message to/from server.
Preparing the module to send and receive a message using the new functions added.