资源简介
FTP客户端程序,计算机网络实验,实验报告你懂得~
代码片段和文件信息
//#pragma comment(lib“ws2_32“)
#include
#include
#include
#include
#include
#include
#include
#include
#include
#define HELP “Input: LS(or LS_PORT)CDGET(or GET_PORT)PUT(or PUT_PORT)DELRMDMKD“
#define MYIP_PORT “PORT 10125617614178“
#define SERVER_IP “10.12.56.176“
using namespace std;
int i=0;
class ftpClient
{
public:
WSAData wsd;
string ipAddress;
int port;
char *buffer;
char *cmdBuffer;
char *listBuffer;
char *command;
int portForData;
SOCKET socketData;
SOCKET socketControl;
SOCKET socketListen;
sockaddr_in socketListen_addr;
sockaddr_in serveraddrData;
sockaddr_in se
评论
共有 条评论