1 #include "syshdrs.h" 2 3 int 4 SConnectByName(int sfd, const char * const addrStr, const int tlen) 5 { 6 int result; 7 struct sockaddr_in remoteAddr; 8 9 if ((result = AddrStrToAddr(addrStr, &remoteAddr, -1)) == 0) { 10 result = SConnect(sfd, &remoteAddr, tlen); 11 } 12 return (result); 13 } /* SConnectByName */ 14