-MatrixHttpInit(\r
- MatrixClient * client)\r
-{\r
- MatrixHttpConnection * conn =\r
- (MatrixHttpConnection *)malloc(sizeof(MatrixHttpConnection));\r
+MatrixHttpConnect(\r
+ MatrixHttpConnection * hc)\r
+{ \r
+ //struct mg_connection * c =\r
+ mg_http_connect(&hc->mgr, hc->host, MatrixHttpCallback, hc);\r