home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Best Internet Programs
/
BESTINTERNET.bin
/
internet
/
winftp
/
winftp.doc
< prev
next >
Wrap
Text File
|
1994-01-07
|
18KB
|
482 lines
WinFTP - A WinSock-based FTP Client for Windows 3.1 and Windows/NT.
Written by : Santanu Lahiri
Based on : WS_FTP & WS_PING by Mr John A. Junod
Release Date: January 7th, 1993
Please read the installation guide before proceeding with the actual
installation of this software, as there are some incompatibilities
with the original version.
WinFTP is based on the WS_FTP program originally written by Mr John A.
Junod, for Microsoft Windows 3.1. In WinFTP, I have added a few features
that I feel would be nice to have in a program of this kind. I am using
the FTP engine from WS_FTP, as I believe Mr. Junod has done a really
superb job on it, and I give him full credit for that. I would like
to take this opportunity to thank him for releasing the source to Public
Domain. That has made it possible for me to learn some of the basics
of WinSock programming from a working source.
I am including the source for the project as part of the release.
Unfortunately, I do not have the necessary expertise in or access to
Borland's compiler or environment to make the code portable to either.
This current version has been compiled with Microsoft Visual C for Windows
and Visual C for Windows NT. If you adapt this code to Borland's compiler,
please consider making the source available as Public Domain.
If you run into any bugs in this release, or would like to see other features,
please let me know at the following address, or simply post on alt.winsock.
I will attempt to maintain the source, but I can not guarantee a prompt
turn-around. If you add to or modify the source, please consider contacting
me so that I can incorporate the changes as well.
Internet: slahiri@magnus.acs.ohio-state.edu
BITNET : lahiri@ohsthr
Disclaimer.
------------
While I have run this software on several different machines and operating
systems, and have made an attempt to fix any bugs I've run into, you use
this software at your own risk. To the best of my knowledge, the program
is virus-free and has not exhibited any unusual tendencies to go berserk.
However, I am not liable for any damages you may incur as a consequence of
using this software.
Also, while this release was posted using Ohio State University's
resources, OSU is not responsible for it, nor should it be held liable. My
development of this software was done independent of my connection to
OSU.
------------------------------------------------------------------------
Now with the pleasantries out of the way, here is a description of the
release itself. For those of you who had already gotten the previous
release (WS_FTPB.ZIP, not WS_FTP.ZIP), you will need to make some
modifications to your INI file. These are detailed later.
The INI File Format.
---------------------
The program works on the presumption that it is easier to remember and
understand a descriptive string like "CICA.Indiana Windows File Archive"
rather than the name ftp.cica.indiana.edu. And the assumption that now
and then we need to log in to the same machine using more than one User
ID. The concept of a Configuration is that you associate a description
with a combination of Host ID and User ID. Once a Configuration is
defined, it is unique.
The .INI File format is given below. You can supply a Configuration
string to name each configuration. In this version, the HostType
values are as follows:
AutoDetect 0
Unix 1 QVT 8
IBM VM 2 IBM/TCP 9
VMS/Multinet 3 Chameleon 10
VMS/UCX 4 SuperTCP 11
Ftp Software 5 SI NT FTPD 12
CUTCP/NCSA 6 IBM MVS 13
NOS 7 UniSys 5000 14
The following file is a sample WINFTP.INI file. If you wish to set
up a proper initialization file, you must edit all references to
directories and all passwords.
WIN16: Copy the WINFTP.INI file into the WINDOWS directory
WIN32: Copy the WINFTP.INI file into the \WINNT directory
Sample WINFTP.INI file:
---------------------------
[WINFTP]
CONFIG=Oakland FTP Service
HOSTNAME=oak.oakland.edu
USERID=anonymous
MAILADDR=slahiri@magnus.acs.ohio-state.edu
VIEWER=d:\pfe\pfe32
LogFile=
LogFlag=On
TempDir=D:\TEMP
ConfigNum=20
ViewerCount=6
Retain=0
DblClk=1
AUTOSTART=1
FLAGS=21
CFG0=Oakland FTP Service
CFG1=Monash FTP Archives
CFG2=Biochemistry
CFG3=Cica FTP Archives
CFG4=SunSite Archives
[WINFTP:Viewer]
Viewer1=A,.TXT,D:\PFE\PFE,D:\Docs
Viewer2=I,.ZIP,D:\WIN\WIZ\WIZUNZIP
Viewer3=I,.GIF,D:\WIN\WINGIF\WINGIF,D:\WIN\WINGIF
Viewer4=I,.BMP,D:\WIN\WINGIF\WINGIF,D:\WIN\WINGIF
Viewer5=A,.LST,D:\WIN\GANDER\GANDER
Viewer6=I,.WRI,WRITE
[WINFTP:Oakland FTP Service]
HostName=oak.oakland.edu
UserID=anonymous
PASS=slahiri@magnus.acs.ohio-state.edu
HostType=AutoDetect
TimeOut=65
Save=0
[WINFTP:Monash FTP Archives]
HostName=ftp.cc.monash.edu.au
UserID=anonymous
PASS=slahiri@magnus.acs.ohio-state.edu
DIR=/pub/win3
HostType=AutoDetect
TimeOut=65
Save=1
DIR1=/pub/win3
DIR2=/pub/win3/access
DIR3=/pub/win3/drivers
DIR4=/pub/win3/drivers/printer
DIR5=/pub/win3/nt
[WINFTP:Biochemistry]
HostName=biochemistry.bioc.cwru.edu
UserID=anonymous
PASS=slahiri@magnus.acs.ohio-state.edu
HostType=Unix
TimeOut=65
[WINFTP:Cica FTP Archives]
HostName=ftp.cica.indiana.edu
UserID=anonymous
PASS=slahiri@magnus.acs.ohio-state.edu
HostType=AutoDetect
TimeOut=65
[WINFTP:SunSite Archives]
HostName=sunsite.unc.edu
UserID=anonymous
PASS=slahiri@magnus.acs.ohio-state.edu
HostType=AutoDetect
TimeOut=65
Description of Dialogs used in WinFTP
======================================================
The HostName Dialog
---------------------
This dialog appears when you wish to connect to a host and click on the
"Connect" button. Note that the "Save Configuration" option has now been
replaced by "Save Directories." and has a different functionality to it.
The components of the dialog are:
Config : The name assigned to the configuration.
Host : The name of the Remote host you wish to connect to.
UserID : User ID you will be logging in with
Passwd : Corresponding password
TimeOut : Time in seconds after which WinFTP will abort the connection.
HostType: Type of Operating System on the host you are connecting to.
Script : Name of a Script file. Not Implemented yet. DO NOT USE.
Account : MiniDisk Password option. Not implemented yet, DO NOT USE.
Save Password : Will save your password as part of your configuration.
Save Directories: If selected, will save list of visited directories on
Close or Exit.
Anonymous Login : Resets UserID & Passwd fields to appropriate values.
DelCfg : Delete Current configuration.
SaveCfg : Save/Update Current Configuration.
Cancel : Cancel the Dialog.
OK : Accept Current Configuration & Log in to Host
If a configuration name is not supplied, WinFTP will attempt to create
one when saving a configuration.
The host types currently supported are listed above in the .INI file
section. If the type of host you are logging into is not available
in the list, please contact me with a directory listing and I will
attempt to include it.
The PingHost Dialog
--------------------
This dialog allows you to query a name server or your hosts file for the
InterNet address corresponding to a host, and ping that host if you
wish. The "Resolve" button performs the DNS query, while the "PingHost"
button pings it. You can specify the size of the Ping packet, and the
repeat count.
The Ping code draws heavily on the WS_PING program by John Junod.
Both blocking and async ping operations are supported, at least on the
Trumpet stack.
This function is still not quite there, though. For now, I've only been
able to get it to work with the Trumpet stack, version A17, A18. It does
NOT work under Win/NT, or with the FTP Software sta