if (!sock) return CMTFailure;
nsPSMShimReceive(CMTSocket sock, void *buffer, size_t bufSize){    PRInt32   total;    CMSocket *cmSock = (CMSocket *)sock;    total = PR_Recv(cmSock->fd, buffer, bufSize, 0, PR_INTERVAL_NO_TIMEOUT);    /* TODO: for now, return 0 if there's an error */    return (total < 0) ? 0 : total;}