示例#1
0
/*
** 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);
}
示例#2
0
int sockPuts(SOCKET sock,char *str)
{
    return (sockWrite(sock,str,strlen(str)));
}