eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'SmalltalkFTPSession':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: SmalltalkFTPSession


Inheritance:

   Object
   |
   +--AbstractTCPSession
      |
      +--AbstractFTPSession
         |
         +--SmalltalkFTPSession

Package:
stx:goodies/communication
Category:
Net-Communication-FTP
Version:
rev: 1.8 date: 2018/04/11 07:58:45
user: stefan
file: SmalltalkFTPSession.st directory: goodies/communication
module: stx stc-classLibrary: communication
Author:
Claus Gittinger

Description:


Helper class for the FTPServer.

an FTPSession which allows for access to Smalltalk internals.
Unfinished - this is a simple unfinished demo.



    (FTPServer forPort:12345)
        sessionClass:SmalltalkFTPSession;
        start

    then, on the command line, try:
        ftp loalhost 12345


Instance protocol:

ftp protocol
o  canChangeWorkingDirectory: newDirectory
true if client is allowed to change to a new directory.
Here, only the simulated virtual directories 'classes' and 'processes'
are allowed.

o  doLIST: longFormat
list of the virtual directories.
Either lists classes or processes

o  doListClasses: longFormat
list class names as if they were files in a folder

o  doListProcesses: longFormat
list process names as if they were files in a folder

o  doListServices: longFormat

o  generateListLineForClassNamed: aClassName

o  generateListLineForProcessWithID: pid

protocol testing
o  allowedToSeeDirectory: dir

o  allowedToWriteIntoDirectory: dir

queries
o  defaultDirectoryForUser: userName

o  loginUserNeedsPassword: userName
raise an error: must be redefined in concrete subclass(es)


Demonstration:


    FTPServer verbose:true



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Sun, 03 Mar 2024 20:28:15 GMT