|
ReactOS 0.4.17-dev-1190-g4c812f4
|
#include "ws2tcpip.h"#include <stdarg.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <time.h>#include <assert.h>#include "windef.h"#include "winbase.h"#include "wingdi.h"#include "winuser.h"#include "wininet.h"#include "winnls.h"#include "winerror.h"#include "winreg.h"#include "winternl.h"#include "shlwapi.h"#include "wine/debug.h"#include "internet.h"
Go to the source code of this file.
Classes | |
| struct | ftp_file_t |
| struct | _ftp_session_t |
| struct | FILEPROPERTIESW |
| struct | WININETFTPFINDNEXTW |
| struct | put_file_task_t |
| struct | directory_task_t |
| struct | find_first_file_task_t |
| struct | get_current_dir_task_t |
| struct | open_file_task_t |
| struct | get_file_task_t |
| struct | delete_file_task_t |
| struct | rename_file_task_t |
| struct | find_next_task_t |
Macros | |
| #define | RESPONSE_TIMEOUT 30 |
| #define | DATA_PACKET_SIZE 0x2000 |
| #define | szCRLF "\r\n" |
| #define | MAX_BACKLOG 5 |
| #define | FTP_CONDITION_MASK 0x0007 |
Typedefs | |
| typedef struct _ftp_session_t | ftp_session_t |
| typedef struct FILEPROPERTIESW * | LPFILEPROPERTIESW |
| typedef struct WININETFTPFINDNEXTW * | LPWININETFTPFINDNEXTW |
Enumerations | |
| enum | FTP_COMMAND { FTP_CMD_ACCT , FTP_CMD_CWD , FTP_CMD_DELE , FTP_CMD_MKD , FTP_CMD_PASS , FTP_CMD_PORT , FTP_CMD_RETR , FTP_CMD_RMD , FTP_CMD_RNFR , FTP_CMD_RNTO , FTP_CMD_STOR , FTP_CMD_TYPE , FTP_CMD_USER , FTP_CMD_SIZE , FTP_CMD_ABOR , FTP_CMD_LIST , FTP_CMD_NLST , FTP_CMD_PASV , FTP_CMD_PWD , FTP_CMD_QUIT } |
Variables | |
| static const CHAR *const | szFtpCommands [] |
| static const CHAR | szMonths [] = "JANFEBMARAPRMAYJUNJULAUGSEPOCTNOVDEC" |
| static const object_vtbl_t | FTPFILEVtbl |
| static const object_vtbl_t | FTPSESSIONVtbl |
| static const object_vtbl_t | FTPFINDNEXTVtbl |
| typedef struct _ftp_session_t ftp_session_t |
| typedef struct FILEPROPERTIESW * LPFILEPROPERTIESW |
| typedef struct WININETFTPFINDNEXTW * LPWININETFTPFINDNEXTW |
Definition at line 116 of file ftp.c.
|
static |
Definition at line 578 of file ftp.c.
Referenced by FtpCreateDirectoryW().
|
static |
Definition at line 1794 of file ftp.c.
Referenced by FtpDeleteFileW().
|
static |
Definition at line 736 of file ftp.c.
Referenced by FtpFindFirstFileW().
|
static |
Definition at line 951 of file ftp.c.
Referenced by FtpGetCurrentDirectoryW().
|
static |
Definition at line 1587 of file ftp.c.
Referenced by FtpGetFileW().
|
static |
Definition at line 1465 of file ftp.c.
Referenced by FtpOpenFileW().
|
static |
Definition at line 248 of file ftp.c.
Referenced by FtpPutFileW().
|
static |
Definition at line 1936 of file ftp.c.
Referenced by FtpRemoveDirectoryW().
|
static |
Definition at line 2088 of file ftp.c.
Referenced by FtpRenameFileW().
|
static |
Definition at line 435 of file ftp.c.
Referenced by FtpSetCurrentDirectoryW().
| HINTERNET FTP_Connect | ( | appinfo_t * | hIC, |
| LPCWSTR | lpszServerName, | ||
| INTERNET_PORT | nServerPort, | ||
| LPCWSTR | lpszUserName, | ||
| LPCWSTR | lpszPassword, | ||
| DWORD | dwFlags, | ||
| DWORD_PTR | dwContext, | ||
| DWORD | dwInternalFlags | ||
| ) |
Definition at line 2430 of file ftp.c.
Referenced by INTERNET_InternetOpenUrlW(), and InternetConnectW().
|
static |
Definition at line 2599 of file ftp.c.
Referenced by FTP_Connect().
|
static |
Definition at line 3592 of file ftp.c.
Referenced by FTP_ReceiveFileList(), and FTPFINDNEXT_FindNextFileProc().
|
static |
Definition at line 3133 of file ftp.c.
Referenced by FTP_SendPortOrPasv().
|
static |
Definition at line 661 of file ftp.c.
Referenced by AsyncFtpCreateDirectoryProc(), and FtpCreateDirectoryW().
|
static |
Definition at line 1877 of file ftp.c.
Referenced by AsyncFtpDeleteFileProc(), and FtpDeleteFileW().
|
static |
Definition at line 814 of file ftp.c.
Referenced by AsyncFtpFindFirstFileProc(), and FtpFindFirstFileW().
|
static |
Definition at line 1046 of file ftp.c.
Referenced by AsyncFtpGetCurrentDirectoryProc(), and FtpGetCurrentDirectoryW().
|
static |
Definition at line 1688 of file ftp.c.
Referenced by AsyncFtpGetFileProc(), and FtpGetFileW().
|
static |
Definition at line 1318 of file ftp.c.
Referenced by AsyncFtpOpenFileProc(), and FtpOpenFileW().
|
static |
Definition at line 344 of file ftp.c.
Referenced by AsyncFtpPutFileProc(), and FtpPutFileW().
|
static |
Definition at line 2019 of file ftp.c.
Referenced by AsyncFtpRemoveDirectoryProc(), and FtpRemoveDirectoryW().
|
static |
Definition at line 2173 of file ftp.c.
Referenced by AsyncFtpRenameFileProc(), and FtpRenameFileW().
|
static |
Definition at line 516 of file ftp.c.
Referenced by AsyncFtpSetCurrentDirectoryProc(), and FtpSetCurrentDirectoryW().
|
static |
Definition at line 3234 of file ftp.c.
Referenced by FTP_FtpFindFirstFileW(), FTP_FtpGetFileW(), FTP_FtpOpenFileW(), and FTP_FtpPutFileW().
Definition at line 2642 of file ftp.c.
Referenced by FTP_ParseNextFile(), and FTP_ReceiveResponse().
|
static |
Definition at line 2948 of file ftp.c.
Referenced by FTP_FtpFindFirstFileW(), FTP_SendRetrieve(), and FTP_SendStore().
|
static |
Definition at line 3790 of file ftp.c.
Referenced by FTP_ReceiveFileList().
|
static |
Definition at line 3629 of file ftp.c.
Referenced by FTP_ParseDirectory().
|
static |
Definition at line 3856 of file ftp.c.
Referenced by FTP_ParseNextFile().
|
static |
Definition at line 3548 of file ftp.c.
Referenced by FTP_FtpFindFirstFileW().
|
static |
Definition at line 1226 of file ftp.c.
Referenced by FTP_FtpOpenFileW(), and FTPFILE_AsyncQueryDataAvailableProc().
|
static |
Definition at line 2768 of file ftp.c.
Referenced by FTP_ConnectToHost(), FTP_DoPassive(), FTP_FtpCreateDirectoryW(), FTP_FtpDeleteFileW(), FTP_FtpFindFirstFileW(), FTP_FtpGetCurrentDirectoryW(), FTP_FtpGetFileW(), FTP_FtpPutFileW(), FTP_FtpRemoveDirectoryW(), FTP_FtpRenameFileW(), FTP_FtpSetCurrentDirectoryW(), FTP_SendAccount(), FTP_SendPassword(), FTP_SendPort(), FTP_SendRetrieve(), FTP_SendStore(), FTP_SendType(), FtpCommandW(), and FTPFILE_Destroy().
|
static |
Definition at line 3391 of file ftp.c.
Referenced by FTP_FtpGetFileW().
|
static |
Definition at line 2871 of file ftp.c.
Referenced by FTP_ConnectToHost(), and FTP_SendPassword().
|
static |
Definition at line 2748 of file ftp.c.
Referenced by FTP_ConnectToHost(), FTP_DoPassive(), FTP_FtpCreateDirectoryW(), FTP_FtpDeleteFileW(), FTP_FtpFindFirstFileW(), FTP_FtpGetCurrentDirectoryW(), FTP_FtpRemoveDirectoryW(), FTP_FtpRenameFileW(), FTP_FtpSetCurrentDirectoryW(), FTP_SendAccount(), FTP_SendPassword(), FTP_SendPort(), FTP_SendRetrieve(), FTP_SendStore(), and FTP_SendType().
|
static |
Definition at line 2694 of file ftp.c.
Referenced by FTP_SendCommand().
|
static |
Definition at line 3265 of file ftp.c.
Referenced by FTP_FtpPutFileW().
|
static |
Definition at line 2831 of file ftp.c.
Referenced by FTP_ConnectToHost().
|
static |
Definition at line 3090 of file ftp.c.
Referenced by FTP_SendPortOrPasv().
|
static |
Definition at line 3205 of file ftp.c.
Referenced by FTP_FtpFindFirstFileW(), FTP_SendRetrieve(), and FTP_SendStore().
|
static |
Definition at line 3345 of file ftp.c.
Referenced by FTP_FtpGetFileW(), and FTP_FtpOpenFileW().
|
static |
Definition at line 2901 of file ftp.c.
Referenced by FTP_FtpOpenFileW(), and FTP_FtpPutFileW().
|
static |
Definition at line 3008 of file ftp.c.
Referenced by FTP_FtpFindFirstFileW(), FTP_SendRetrieve(), and FTP_SendStore().
Definition at line 3919 of file ftp.c.
Referenced by FTP_ConnectToHost(), FTP_DoPassive(), FTP_FtpCreateDirectoryW(), FTP_FtpDeleteFileW(), FTP_FtpFindFirstFileW(), FTP_FtpGetCurrentDirectoryW(), FTP_FtpGetFileW(), FTP_FtpPutFileW(), FTP_FtpRemoveDirectoryW(), FTP_FtpRenameFileW(), FTP_FtpSetCurrentDirectoryW(), FTP_SendAccount(), FTP_SendPassword(), FTP_SendPort(), FTP_SendRetrieve(), FTP_SendStore(), FTP_SendType(), and FtpCommandW().
| BOOL WINAPI FtpCommandA | ( | HINTERNET | hConnect, |
| BOOL | fExpectResponse, | ||
| DWORD | dwFlags, | ||
| LPCSTR | lpszCommand, | ||
| DWORD_PTR | dwContext, | ||
| HINTERNET * | phFtpCommand | ||
| ) |
Definition at line 2219 of file ftp.c.
| BOOL WINAPI FtpCommandW | ( | HINTERNET | hConnect, |
| BOOL | fExpectResponse, | ||
| DWORD | dwFlags, | ||
| LPCWSTR | lpszCommand, | ||
| DWORD_PTR | dwContext, | ||
| HINTERNET * | phFtpCommand | ||
| ) |
Definition at line 2255 of file ftp.c.
Referenced by FtpCommandA().
Definition at line 566 of file ftp.c.
Referenced by test_createdir(), and test_openfile().
Definition at line 599 of file ftp.c.
Referenced by FtpCreateDirectoryA().
Definition at line 1778 of file ftp.c.
Referenced by test_deletefile(), and test_openfile().
Definition at line 1815 of file ftp.c.
Referenced by FtpDeleteFileA().
|
static |
|
static |
|
static |
|
static |
Definition at line 1255 of file ftp.c.
|
static |
Definition at line 1142 of file ftp.c.
|
static |
|
static |
| HINTERNET WINAPI FtpFindFirstFileA | ( | HINTERNET | hConnect, |
| LPCSTR | lpszSearchFile, | ||
| LPWIN32_FIND_DATAA | lpFindFileData, | ||
| DWORD | dwFlags, | ||
| DWORD_PTR | dwContext | ||
| ) |
Definition at line 709 of file ftp.c.
Referenced by test_find_first_file().
| HINTERNET WINAPI FtpFindFirstFileW | ( | HINTERNET | hConnect, |
| LPCWSTR | lpszSearchFile, | ||
| LPWIN32_FIND_DATAW | lpFindFileData, | ||
| DWORD | dwFlags, | ||
| DWORD_PTR | dwContext | ||
| ) |
Definition at line 757 of file ftp.c.
Referenced by FtpFindFirstFileA().
|
static |
Definition at line 3484 of file ftp.c.
Referenced by FTPFINDNEXT_FindNextFileW().
|
static |
|
static |
Definition at line 3446 of file ftp.c.
Referenced by FTPFINDNEXT_AsyncFindNextFileProc(), and FTPFINDNEXT_FindNextFileW().
|
static |
Definition at line 3508 of file ftp.c.
|
static |
| BOOL WINAPI FtpGetCurrentDirectoryA | ( | HINTERNET | hFtpSession, |
| LPSTR | lpszCurrentDirectory, | ||
| LPDWORD | lpdwCurrentDirectory | ||
| ) |
Definition at line 916 of file ftp.c.
Referenced by test_get_current_dir().
| BOOL WINAPI FtpGetCurrentDirectoryW | ( | HINTERNET | hFtpSession, |
| LPWSTR | lpszCurrentDirectory, | ||
| LPDWORD | lpdwCurrentDirectory | ||
| ) |
Definition at line 971 of file ftp.c.
Referenced by FtpGetCurrentDirectoryA().
| BOOL WINAPI FtpGetFileA | ( | HINTERNET | hInternet, |
| LPCSTR | lpszRemoteFile, | ||
| LPCSTR | lpszNewFile, | ||
| BOOL | fFailIfExists, | ||
| DWORD | dwLocalFlagsAttribute, | ||
| DWORD | dwInternetFlags, | ||
| DWORD_PTR | dwContext | ||
| ) |
Definition at line 1560 of file ftp.c.
Referenced by test_getfile(), test_getfile_no_open(), and test_openfile().
Definition at line 1758 of file ftp.c.
Referenced by FtpProtocol_start_downloading(), and CDownloadManager::PerformDownloadAndInstall().
| BOOL WINAPI FtpGetFileW | ( | HINTERNET | hInternet, |
| LPCWSTR | lpszRemoteFile, | ||
| LPCWSTR | lpszNewFile, | ||
| BOOL | fFailIfExists, | ||
| DWORD | dwLocalFlagsAttribute, | ||
| DWORD | dwInternetFlags, | ||
| DWORD_PTR | dwContext | ||
| ) |
Definition at line 1611 of file ftp.c.
Referenced by FtpGetFileA().
| HINTERNET WINAPI FtpOpenFileA | ( | HINTERNET | hFtpSession, |
| LPCSTR | lpszFileName, | ||
| DWORD | fdwAccess, | ||
| DWORD | dwFlags, | ||
| DWORD_PTR | dwContext | ||
| ) |
Definition at line 1444 of file ftp.c.
Referenced by test_find_first_file(), and test_openfile().
| HINTERNET WINAPI FtpOpenFileW | ( | HINTERNET | hFtpSession, |
| LPCWSTR | lpszFileName, | ||
| DWORD | fdwAccess, | ||
| DWORD | dwFlags, | ||
| DWORD_PTR | dwContext | ||
| ) |
Definition at line 1486 of file ftp.c.
Referenced by FtpOpenFileA(), and INTERNET_InternetOpenUrlW().
| BOOL WINAPI FtpPutFileA | ( | HINTERNET | hConnect, |
| LPCSTR | lpszLocalFile, | ||
| LPCSTR | lpszNewRemoteFile, | ||
| DWORD | dwFlags, | ||
| DWORD_PTR | dwContext | ||
| ) |
Definition at line 224 of file ftp.c.
Referenced by test_openfile(), and test_putfile().
| BOOL WINAPI FtpPutFileW | ( | HINTERNET | hConnect, |
| LPCWSTR | lpszLocalFile, | ||
| LPCWSTR | lpszNewRemoteFile, | ||
| DWORD | dwFlags, | ||
| DWORD_PTR | dwContext | ||
| ) |
Definition at line 272 of file ftp.c.
Referenced by FtpPutFileA().
Definition at line 1925 of file ftp.c.
Referenced by test_openfile(), and test_removedir().
Definition at line 1957 of file ftp.c.
Referenced by FtpRemoveDirectoryA().
Definition at line 2068 of file ftp.c.
Referenced by test_openfile(), and test_renamefile().
Definition at line 2110 of file ftp.c.
Referenced by FtpRenameFileA().
|
static |
Definition at line 2355 of file ftp.c.
|
static |
|
static |
Definition at line 419 of file ftp.c.
Referenced by test_find_first_file().
Definition at line 456 of file ftp.c.
Referenced by FtpSetCurrentDirectoryA().
Definition at line 207 of file ftp.c.
Referenced by FtpCreateDirectoryW(), FtpDeleteFileW(), FtpGetCurrentDirectoryW(), FtpGetFileW(), FtpPutFileW(), FtpRemoveDirectoryW(), FtpRenameFileW(), and FtpSetCurrentDirectoryW().
| WINE_DEFAULT_DEBUG_CHANNEL | ( | wininet | ) |
|
static |
Definition at line 1295 of file ftp.c.
Referenced by FTP_FtpOpenFileW().
|
static |
Definition at line 3526 of file ftp.c.
Referenced by FTP_ReceiveFileList().
|
static |
Definition at line 2397 of file ftp.c.
Referenced by FTP_Connect().
Definition at line 142 of file ftp.c.
Referenced by FTP_SendCommandA().
Definition at line 165 of file ftp.c.
Referenced by FTP_ParseNextFile().