Lines Matching refs:rcfd
452 char* path = rtcp->rcft.rcfd.fName; in GetFileDownloadResponseMsgInBlocks()
456 if((rtcp->rcft.rcfd.downloadInProgress == FALSE) && (rtcp->rcft.rcfd.downloadFD == -1)) { in GetFileDownloadResponseMsgInBlocks()
457 if((rtcp->rcft.rcfd.downloadFD = open(path, O_RDONLY)) == -1) { in GetFileDownloadResponseMsgInBlocks()
462 rtcp->rcft.rcfd.downloadInProgress = TRUE; in GetFileDownloadResponseMsgInBlocks()
464 if((rtcp->rcft.rcfd.downloadInProgress == TRUE) && (rtcp->rcft.rcfd.downloadFD != -1)) { in GetFileDownloadResponseMsgInBlocks()
465 if( (numOfBytesRead = read(rtcp->rcft.rcfd.downloadFD, pBuf, SZ_RFBBLOCKSIZE)) <= 0) { in GetFileDownloadResponseMsgInBlocks()
466 close(rtcp->rcft.rcfd.downloadFD); in GetFileDownloadResponseMsgInBlocks()
467 rtcp->rcft.rcfd.downloadFD = -1; in GetFileDownloadResponseMsgInBlocks()
468 rtcp->rcft.rcfd.downloadInProgress = FALSE; in GetFileDownloadResponseMsgInBlocks()
470 return CreateFileDownloadZeroSizeDataMsg(rtcp->rcft.rcfd.mTime); in GetFileDownloadResponseMsgInBlocks()
486 char* path = rtcp->rcft.rcfd.fName; in ChkFileDownloadErr()
502 rtcp->rcft.rcfd.mTime = stat_buf.st_mtime; in ChkFileDownloadErr()
761 if(rtcp->rcft.rcfd.downloadInProgress == TRUE) { in CloseUndoneFileTransfer()
762 rtcp->rcft.rcfd.downloadInProgress = FALSE; in CloseUndoneFileTransfer()
764 if(rtcp->rcft.rcfd.downloadFD != -1) { in CloseUndoneFileTransfer()
765 close(rtcp->rcft.rcfd.downloadFD); in CloseUndoneFileTransfer()
766 rtcp->rcft.rcfd.downloadFD = -1; in CloseUndoneFileTransfer()
768 memset(rtcp->rcft.rcfd.fName, 0 , PATH_MAX); in CloseUndoneFileTransfer()