Update protocol.py

implement read_info and handle_conn function