ReactOS 0.4.16-dev-106-g10b08aa
|
#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 1793 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 1586 of file ftp.c.
Referenced by FtpGetFileW().
|
static |
Definition at line 1464 of file ftp.c.
Referenced by FtpOpenFileW().
|
static |
Definition at line 248 of file ftp.c.
Referenced by FtpPutFileW().
|
static |
Definition at line 1935 of file ftp.c.
Referenced by FtpRemoveDirectoryW().
|
static |
Definition at line 2087 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 2428 of file ftp.c.
Referenced by INTERNET_InternetOpenUrlW(), and InternetConnectW().
|
static |
Definition at line 2597 of file ftp.c.
Referenced by FTP_Connect().
|
static |
Definition at line 3589 of file ftp.c.
Referenced by FTP_ReceiveFileList(), and FTPFINDNEXT_FindNextFileProc().
|
static |
Definition at line 3131 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 1876 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 1687 of file ftp.c.
Referenced by AsyncFtpGetFileProc(), and FtpGetFileW().
|
static |
Definition at line 1317 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 2018 of file ftp.c.
Referenced by AsyncFtpRemoveDirectoryProc(), and FtpRemoveDirectoryW().
|
static |
Definition at line 2172 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 3232 of file ftp.c.
Referenced by FTP_FtpFindFirstFileW(), FTP_FtpGetFileW(), FTP_FtpOpenFileW(), and FTP_FtpPutFileW().
Definition at line 2640 of file ftp.c.
Referenced by FTP_ParseNextFile(), and FTP_ReceiveResponse().
|
static |
Definition at line 2946 of file ftp.c.
Referenced by FTP_FtpFindFirstFileW(), FTP_SendRetrieve(), and FTP_SendStore().
|
static |
Definition at line 3787 of file ftp.c.
Referenced by FTP_ReceiveFileList().
|
static |
Definition at line 3626 of file ftp.c.
Referenced by FTP_ParseDirectory().
|
static |
Definition at line 3852 of file ftp.c.
Referenced by FTP_ParseNextFile().
|
static |
Definition at line 3545 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 2766 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 3389 of file ftp.c.
Referenced by FTP_FtpGetFileW().
|
static |
Definition at line 2869 of file ftp.c.
Referenced by FTP_ConnectToHost(), and FTP_SendPassword().
|
static |
Definition at line 2746 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 2692 of file ftp.c.
Referenced by FTP_SendCommand().
|
static |
Definition at line 3263 of file ftp.c.
Referenced by FTP_FtpPutFileW().
|
static |
Definition at line 2829 of file ftp.c.
Referenced by FTP_ConnectToHost().
|
static |
Definition at line 3088 of file ftp.c.
Referenced by FTP_SendPortOrPasv().
|
static |
Definition at line 3203 of file ftp.c.
Referenced by FTP_FtpFindFirstFileW(), FTP_SendRetrieve(), and FTP_SendStore().
|
static |
Definition at line 3343 of file ftp.c.
Referenced by FTP_FtpGetFileW(), and FTP_FtpOpenFileW().
|
static |
Definition at line 2899 of file ftp.c.
Referenced by FTP_FtpOpenFileW(), and FTP_FtpPutFileW().
|
static |
Definition at line 3006 of file ftp.c.
Referenced by FTP_FtpFindFirstFileW(), FTP_SendRetrieve(), and FTP_SendStore().
Definition at line 3915 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 2218 of file ftp.c.
BOOL WINAPI FtpCommandW | ( | HINTERNET | hConnect, |
BOOL | fExpectResponse, | ||
DWORD | dwFlags, | ||
LPCWSTR | lpszCommand, | ||
DWORD_PTR | dwContext, | ||
HINTERNET * | phFtpCommand | ||
) |
Definition at line 2254 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 1777 of file ftp.c.
Referenced by test_deletefile(), and test_openfile().
Definition at line 1814 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 3482 of file ftp.c.
Referenced by FTPFINDNEXT_FindNextFileW().
|
static |
|
static |
Definition at line 3444 of file ftp.c.
Referenced by FTPFINDNEXT_AsyncFindNextFileProc(), and FTPFINDNEXT_FindNextFileW().
|
static |
Definition at line 3506 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 1559 of file ftp.c.
Referenced by test_getfile(), test_getfile_no_open(), and test_openfile().
Definition at line 1757 of file ftp.c.
Referenced by FtpProtocol_start_downloading(), and CDownloadManager::ThreadFunc().
BOOL WINAPI FtpGetFileW | ( | HINTERNET | hInternet, |
LPCWSTR | lpszRemoteFile, | ||
LPCWSTR | lpszNewFile, | ||
BOOL | fFailIfExists, | ||
DWORD | dwLocalFlagsAttribute, | ||
DWORD | dwInternetFlags, | ||
DWORD_PTR | dwContext | ||
) |
Definition at line 1610 of file ftp.c.
Referenced by FtpGetFileA().
HINTERNET WINAPI FtpOpenFileA | ( | HINTERNET | hFtpSession, |
LPCSTR | lpszFileName, | ||
DWORD | fdwAccess, | ||
DWORD | dwFlags, | ||
DWORD_PTR | dwContext | ||
) |
Definition at line 1443 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 1485 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 1924 of file ftp.c.
Referenced by test_openfile(), and test_removedir().
Definition at line 1956 of file ftp.c.
Referenced by FtpRemoveDirectoryA().
Definition at line 2067 of file ftp.c.
Referenced by test_openfile(), and test_renamefile().
Definition at line 2109 of file ftp.c.
Referenced by FtpRenameFileA().
|
static |
Definition at line 2354 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 3524 of file ftp.c.
Referenced by FTP_ReceiveFileList().
|
static |
Definition at line 2396 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().