SendCommand read/write

sending Chars to server and retrieving server reply code