conn: init conn struct