#include <pwd.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <unistd.h>#include <dirent.h>#include <pthread.h>#include <sys/stat.h>#include <sys/types.h>#include <limits.h>#include <rfb/rfb.h>#include "rfbtightproto.h"#include "filetransfermsg.h"#include "handlefiletransferrequest.h"
Include dependency graph for handlefiletransferrequest.c:Go to the source code of this file.
Defines | |
| #define | __FUNCTION__ "unknown" |
Functions | |
| void | InitFileTransfer () |
| int | SetFtpRoot (char *path) |
| char * | GetHomeDir (uid_t uid) |
| void | FreeHomeDir (char *homedir) |
| char * | ConvertPath (char *path) |
| void | EnableFileTransfer (rfbBool enable) |
| rfbBool | IsFileTransferEnabled () |
| char * | GetFtpRoot () |
| void | HandleFileListRequest (rfbClientPtr cl, rfbTightClientRec *data) |
| void | HandleFileDownloadLengthError (rfbClientPtr cl, short fNameSize) |
| void | SendFileDownloadLengthErrMsg (rfbClientPtr cl) |
| void | HandleFileDownload (rfbClientPtr cl, rfbTightClientPtr data) |
| void | HandleFileDownloadRequest (rfbClientPtr cl, rfbTightClientPtr rtcp) |
| rfbTightClientPtr | rfbGetTightClientData (rfbClientPtr cl) |
| void * | RunFileDownloadThread (void *client) |
| void | HandleFileDownloadCancelRequest (rfbClientPtr cl, rfbTightClientPtr rtcp) |
| void | HandleFileUpload (rfbClientPtr cl, rfbTightClientPtr data) |
| void | HandleFileUploadLengthError (rfbClientPtr cl, short fNameSize) |
| void | SendFileUploadLengthErrMsg (rfbClientPtr cl) |
| void | HandleFileUploadRequest (rfbClientPtr cl, rfbTightClientPtr rtcp) |
| void | HandleFileUploadWrite (rfbClientPtr cl, rfbTightClientPtr rtcp, char *pBuf) |
| void | HandleFileUploadDataRequest (rfbClientPtr cl, rfbTightClientPtr rtcp) |
| void | HandleFileUploadFailedRequest (rfbClientPtr cl, rfbTightClientPtr rtcp) |
| void | HandleFileCreateDirRequest (rfbClientPtr cl, rfbTightClientPtr rtcp) |
Variables | |
| pthread_mutex_t | fileDownloadMutex = PTHREAD_MUTEX_INITIALIZER |
| rfbBool | fileTransferEnabled = TRUE |
| rfbBool | fileTransferInitted = FALSE |
| char | ftproot [PATH_MAX] |
| #define __FUNCTION__ "unknown" |
Definition at line 90 of file handlefiletransferrequest.c.
| char* ConvertPath | ( | char * | path | ) |
Definition at line 193 of file handlefiletransferrequest.c.
Here is the caller graph for this function:| void EnableFileTransfer | ( | rfbBool | enable | ) |
Definition at line 216 of file handlefiletransferrequest.c.
Here is the caller graph for this function:| void FreeHomeDir | ( | char * | homedir | ) |
Definition at line 177 of file handlefiletransferrequest.c.
Here is the caller graph for this function:| char* GetFtpRoot | ( | ) |
Definition at line 230 of file handlefiletransferrequest.c.
Here is the caller graph for this function:| char * GetHomeDir | ( | uid_t | uid | ) |
Definition at line 154 of file handlefiletransferrequest.c.
Here is the caller graph for this function:| void HandleFileCreateDirRequest | ( | rfbClientPtr | cl, | |
| rfbTightClientPtr | rtcp | |||
| ) |
Definition at line 946 of file handlefiletransferrequest.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void HandleFileDownload | ( | rfbClientPtr | cl, | |
| rfbTightClientPtr | data | |||
| ) |
Definition at line 502 of file handlefiletransferrequest.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void HandleFileDownloadCancelRequest | ( | rfbClientPtr | cl, | |
| rfbTightClientPtr | rtcp | |||
| ) |
Definition at line 541 of file handlefiletransferrequest.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void HandleFileDownloadLengthError | ( | rfbClientPtr | cl, | |
| short | fNameSize | |||
| ) |
Definition at line 408 of file handlefiletransferrequest.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void HandleFileDownloadRequest | ( | rfbClientPtr | cl, | |
| rfbTightClientPtr | rtcp | |||
| ) |
Definition at line 338 of file handlefiletransferrequest.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void HandleFileListRequest | ( | rfbClientPtr | cl, | |
| rfbTightClientRec * | data | |||
| ) |
Definition at line 250 of file handlefiletransferrequest.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void HandleFileUpload | ( | rfbClientPtr | cl, | |
| rfbTightClientPtr | data | |||
| ) |
Definition at line 732 of file handlefiletransferrequest.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void HandleFileUploadDataRequest | ( | rfbClientPtr | cl, | |
| rfbTightClientPtr | rtcp | |||
| ) |
Definition at line 757 of file handlefiletransferrequest.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void HandleFileUploadFailedRequest | ( | rfbClientPtr | cl, | |
| rfbTightClientPtr | rtcp | |||
| ) |
Definition at line 873 of file handlefiletransferrequest.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void HandleFileUploadLengthError | ( | rfbClientPtr | cl, | |
| short | fNameSize | |||
| ) |
Definition at line 675 of file handlefiletransferrequest.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void HandleFileUploadRequest | ( | rfbClientPtr | cl, | |
| rfbTightClientPtr | rtcp | |||
| ) |
Definition at line 611 of file handlefiletransferrequest.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void HandleFileUploadWrite | ( | rfbClientPtr | cl, | |
| rfbTightClientPtr | rtcp, | |||
| char * | pBuf | |||
| ) |
Definition at line 853 of file handlefiletransferrequest.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void InitFileTransfer | ( | ) |
Definition at line 66 of file handlefiletransferrequest.c.
Here is the call graph for this function:
Here is the caller graph for this function:| rfbBool IsFileTransferEnabled | ( | ) |
Definition at line 223 of file handlefiletransferrequest.c.
Here is the caller graph for this function:| rfbTightClientPtr rfbGetTightClientData | ( | rfbClientPtr | cl | ) |
Definition at line 41 of file rfbtightserver.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void* RunFileDownloadThread | ( | void * | client | ) |
Definition at line 466 of file handlefiletransferrequest.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void SendFileDownloadLengthErrMsg | ( | rfbClientPtr | cl | ) |
Definition at line 444 of file handlefiletransferrequest.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void SendFileUploadLengthErrMsg | ( | rfbClientPtr | cl | ) |
Definition at line 713 of file handlefiletransferrequest.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int SetFtpRoot | ( | char * | path | ) |
Definition at line 98 of file handlefiletransferrequest.c.
Here is the caller graph for this function:| pthread_mutex_t fileDownloadMutex = PTHREAD_MUTEX_INITIALIZER |
Definition at line 42 of file handlefiletransferrequest.c.
| rfbBool fileTransferEnabled = TRUE |
Definition at line 44 of file handlefiletransferrequest.c.
| rfbBool fileTransferInitted = FALSE |
Definition at line 45 of file handlefiletransferrequest.c.
| char ftproot[PATH_MAX] |
Definition at line 46 of file handlefiletransferrequest.c.
1.7.1