/* connectTCP.c - connectTCP */ int connectsock(const char *host, const char *service, const char *transport); /*------------------------------------------------------------------------ * connectTCP - connect to a specified TCP service on a specified host *------------------------------------------------------------------------ */ int connectTCP(const char *host, const char *service ) /* * Arguments: * host - name of host to which connection is desired * service - service associated with the desired port */ { return connectsock( host, service, "tcp"); }