/* ** this function writes a character string out to a socket. ** returns ** number of bytes written to the socket ** -1 if the connection is closed while it is trying to write */ int sockPuts(int sockfd,char *str) { int rc; rc=sockWrite(sockfd,str,strlen(str)); return(rc); }
int sockPuts(SOCKET sock,char *str) { return (sockWrite(sock,str,strlen(str))); }