Start writing handshake and wire protocol parser