command.c: add documentation of handle_connect()