init_client
int init_client(int *sock, char *server, char *port, int type, int af);
if (init_client(&s, cfg.host, cfg.port,