封装了ftplib的库 https://github.com/mkulke/ftplibpp 插件地址 https://github.com/HeartlessLD/UE4-FTPPlugin-
这里大致说一下注意事项,可能有不全的,具体看代码
1.插件需要添加一些宏定义 .build.cs
Definitions.AddRange(new string[] { "NOLFS", "NOSSL", "_CRT_SECURE_NO_WARNINGS", "BUILDING_DLL" });
2.添加一些警告屏蔽 如4996 4456 4706 还有UE4的windows冲突问题 .ftplib.h
#pragma warning(disable:4996)
#pragma warning(disable:4456)
#pragma warning(disable:4706)
#include "Windows/AllowWindowsPlatformTypes.h"
xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
#include "Windows/HideWindowsPlatformTypes.h"
3.使用winsocket.h时
#if defined(_WIN32)
#include <windows.h>
#include <winsock.h>
#pragma comment(lib,"ws2_32")
#else
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <arpa/inet.h>
#endif
大概就是以上这些问题
|