home *** CD-ROM | disk | FTP | other *** search
- #define IS_GLOBAL_C /* prevent externs from being read in ws_glob.h */
- #include "ws_glob.h"
- #include "winftp.h"
-
- #ifndef MAXPACKET
- #define MAXPACKET 4096
- #endif
-
- BOOL bAutoStart = TRUE; // automatically prompt for connect
- BOOL bAborted = FALSE; // set by timeout routine
- BOOL bRetain = FALSE; // retain temp files or not
- BOOL bDblClkVu = FALSE; // double click means what
- BOOL bAccount = FALSE; // use ACCOUNT password
- BOOL bFireWall = FALSE; // use FireWall Access
-
- BOOL bLocalHistory = FALSE;
- BOOL bRemoteHistory= FALSE;
- BOOL bCancelXfer = FALSE;
- BOOL bOpInProgress = FALSE;
-
- WORD wSortType = IDM_SORTBYNAME;
-
- u_int uiTimeOut=60000; // 60 second timeout??
-
- char szXferWnd[15]="WFTPXfer";
- char szMsgWnd[15]="WFTPZoom";
- char szMsgBuf[MAXPACKET]; // main i/o buffer
- u_char szSendPkt[MAXPACKET]; // output transfer buffer
- char szString[5120]; // temp string area
- char szViewer[128]="pfe32";
- char szMailAddress[128];
- char szDlgPrompt[80]="input:"; // used by input dialog as prompt
- char szDlgEdit[80]=""; // used by input dialog for output
- char szConfig[80]=""; // used by host dialog for Config Name
- char szUserID[80]=""; // used by host dialog for userid
- char szPassWord[80]="\0"; // used by host dialog for password
- char szRemoteHost[80]=""; // remote host name/addr to connect to
- char szAppName[20]; // this programs name "WinFTP"
- char szIniFile[20]="WINFTP.INI"; // INI file name
- char szTmpDirFileName[20]="wftp%04d.dir";
- char szTmpViewFileName[20]="wftp%04d.tmp";
- char szLFileType[20] = "*.*";
- char szRFileType[20];
- char szAccountPass[30];
- char szLogFile[_MAX_PATH];
- char szInitDir[_MAX_PATH];
- char szScript[_MAX_PATH];
-
- char szFireWallHost[80];
- char szFireWallUserID[30];
- char szFireWallUserPass[30];
-
- #ifdef WIN32
- char szDefaultHdr[40] = "WinSock FTP For Windows/NT";
- #else
- char szDefaultHdr[40] = "WinSock FTP For Windows 3.1";
- #endif
-
- char szFormName[10]="non-print"; // ** not used in this version
- char szModeName[10]="stream"; // ** not used in this version
- char szStructName[10]="file"; // ** not used in this version
- char szTypeName[10]="ASCII"; // ** not used in this version
-
- LPSTR lpDebugWindow = "Debug Window";
-
- char szTempDir[80]; // Stores the temporary file dir
- char szTmpDirFile[_MAX_PATH]; // Used to create temp dir file
- char szTmpViewFile[_MAX_PATH]; // Used to view the file
- char szCurrentDir[_MAX_PATH]; // Holds File Name for LongDir
-
- char fType=TYPE_I; // file transfer type
- char cType=TYPE_A; // current transfer type
- char cForm=FORM_N; // format (not used???)
- char cMode=MODE_S; // mode (not used???)
-
- HCURSOR hStdCursor,hWaitCursor; // cursors
-
- HINSTANCE hInst; // handle of instance
- HWND hWndMain; // handle of main window
- HWND hWndDbg; // handle of Debug Window
-
- // child window handles
- HWND hLbxLDir,hLbxLFiles,hLbxRDir,hLbxRFiles, hLbxLDirLst, hLbxRDirLst;
- HWND hTxtLDir,hTxtRHost,hTxtRDir,hTxtLBytes,hTxtRBytes;
- HWND hRBascii,hRBbinary,hRBl8, hScroll;
-
- BOOL bConnected=FALSE; // connected flag
- BOOL bCmdInProgress=FALSE; // command in progress flag
- BOOL bSendPort=TRUE; // use PORT commands (must be 1!!!)
-
- int nWndx; // the x axis multiplier
- int nWndy; // the y axis multiplier
-
- int nTimerID; // Timer ID to set
- int nAcctType=0; // Account Processing Type
- int nLogFlag=MF_UNCHECKED; // Do not log messages
-
- // options
- int bBell=2; // completion bell (not used in this version)
- int bCRstrip=2; // crlf conversion (not used in this version)
- int bDoGlob=2; // globbing (not used in this version)
- int bHash=2; // show hash (not used in this version)
- int bInteractive=0; // prompting (not used in this version)
- int bMCase=2; // case conversion (not used in this version)
- int bRecvUniq=0; // unique name on receive (not used in this ver)
- int bStorUniq=2; // unique name on transmit (not used in this ver)
- int bVerbose=0; // maximum verbosity (turns extra debug msgs on)
- int nHostType=0;
- int iCode; // return code from last command(..)
-
- int ptrhGMem=0;
- int nCfgNum=0;
- int nViewNum=0;
-
- SOCKET ctrl_socket = INVALID_SOCKET; // control channel socket
- SOCKET data_socket = INVALID_SOCKET; // data channel socket
- SOCKET listen_socket = INVALID_SOCKET; // data listen socket
-
- struct sockaddr_in saDestAddr;
- struct sockaddr_in saFromAddr;
- struct sockaddr_in saSockAddr; // endpoint address
- struct sockaddr_in saSockAddr1; // used when bSendPort==0
- struct sockaddr_in saCtrlAddr;
-
- WORD sVPos; // scroll pos for debug window
-
- WSADATA WSAData; // windows sockets dll information
-
-
-