static void tc_free(void) { if (tc.net) { tnt_stream_free(tc.net); } tc_admin_close(&tc.admin); }
int tc_admin_reconnect(struct tc_admin *a) { tc_admin_close(a); return tc_admin_connect(a, a->host, a->port); }