[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference lassie::ucx

Title:DEC TCP/IP Services for OpenVMS
Notice:Note 2-SSB Kits, 3-FT Kits, 4-Patch Info, 7-QAR System
Moderator:ucxaxp.ucx.lkg.dec.com::TIBBERT
Created:Thu Nov 17 1994
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:5568
Total number of notes:21492

5167.0. "Callable interface to FTP in UCX" by CHEFS::DRSD11::THRUSSELL (Running on empty) Tue Jan 28 1997 10:39

I'm looking for a callable interface to FTP, and Note 2274.1, written in
May 1995, sugggests that UCX may include a callable interface to FTP at some
point.

Is this happening, has it happened (or is it just a myth)?


Richard.

T.RTitleUserPersonal
Name
DateLines
5167.1care to re-invent the wheel?CUJO::SAMPSONTue Jan 28 1997 22:414
	It can be done, and it has been done (probably more than once),
using $QIO calls, socket calls, and/or some combination.  Unfortunately,
it seems that no implementation has so far been provided to the general
UCX user community.
5167.2UCXAXP::GEMIGNANIThu Jan 30 1997 18:183
    
    There will not be such a beast in V4.2.  It will almost definitely be
    in by the UCX IP V6 release.
5167.3Commands for FTP (through socket)CHEFS::DRSD11::THRUSSELLRunning on emptyFri Feb 07 1997 05:3015
I only need a small sub-set of FTP functions so I could (in theory) write my
own interface using sockets.

I can connect to an FTP server (via a socket) and if I send it a message (any
data string) I get the following response back.


	220 DRSD09 FTP Server (Version 3.2) Ready.

I cannot get any other response at all from the server.


Can anyone give me a clue on the required format of commands (e.g. for ls, get
and put) that I need to send through the socket to get some useful response from
the ftp server.
5167.4are you sure you want to do this?UTRTSC::KNOPPERSOswald KnoppersFri Feb 07 1997 06:4310
Well, you can telnet to port 21 and type the 'help' command. This will
display a list of possible commands.

However I think it is not a trivial thing to implement a ftp client. Maybe
you can try using parts of public domain implementations of ftp, from Linux
for instance.

Regards,

Oswald
5167.5UCXAXP::GEMIGNANITue Feb 11 1997 20:0111
    There are two things here.
    
    First of all, each FTP response is prefixed by a three digit response
    code.  220 indicates that the server is ready for a new user. 
    Therefore, the client is expected to log a new user in.  This is all
    outlined in RFC-959.
    
    Something important that Oswald stumbled onto without it becoming
    obvious, is that the FTP server and client speak the TELNET protocol.
    Each command (and response) is terminated by a <CR><LF>, which is the
    NVT (network virtual terminal) equivalent of \n (newline).