Changing Connection protocol.

implmenting the I,R connetion Protocol in generateUTF
"Server end" and in parseUTF "Client end".

Signed-off-by: Yousef Hamza <jo.adam.93@gmail.com>