int OpenControlChannel(char *serverhost,int serverport, char *serverpath);
int ftp_cmd(int sockfd, char *pcmd);
int login(SOCKET s, char *logininfo, int tmplen);
int RecvAnalysis(SOCKET s, char *SendMsgBuff);
int CreateSocketData(SOCKET s, char *SendMsgBuff);
int sendcommand(SOCKET s, const char *sendcmd);
int SendFileData(SOCKET s, char *SendMsgBuff);
int pasv_list(SOCKET s);
// open the control channel to the FTP server
int OpenControlChannel(char *serverhost,int serverport, char *serverpath)
{
WSADATA wsaData;
WORD sockVersion=MAKEWORD(1,1);
WSAStartup(sockVersion,&wsaData);
int OpenControlChannel(char *serverhost,int serverport, char *serverpath);
int ftp_cmd(int sockfd, char *pcmd);
int login(SOCKET s, char *logininfo, int tmplen);
int RecvAnalysis(SOCKET s, char *SendMsgBuff);
int CreateSocketData(SOCKET s, char *SendMsgBuff);
int sendcommand(SOCKET s, const char *sendcmd);
int SendFileData(SOCKET s, char *SendMsgBuff);
int pasv_list(SOCKET s);
// open the control channel to the FTP server
int OpenControlChannel(char *serverhost,int serverport, char *serverpath)
{
WSADATA wsaData;
WORD sockVersion=MAKEWORD(1,1);
WSAStartup(sockVersion,&wsaData);