struct mg_connection:: int flags -> long flags