int connectsock(char *host, char *service, char *protocol, int nonblock);