Logo Search packages:      
Sourcecode: s3ql version File versions  Download package

Public Member Functions | Public Attributes | Static Public Attributes | Private Attributes

s3ql::backends::ftplib::FTP_TLS Class Reference

Inheritance diagram for s3ql::backends::ftplib::FTP_TLS:
Inheritance graph
[legend]
Collaboration diagram for s3ql::backends::ftplib::FTP_TLS:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def abort
def acct
def auth
def close
def connect
def cwd
def delete
def dir
def getline
def getmultiline
def getresp
def getwelcome
def login
def login
def makepasv
def makeport
def mkd
def nlst
def ntransfercmd
def prot_c
def prot_p
def putcmd
def putline
def pwd
def quit
def rename
def retrbinary
def retrlines
def rmd
def sanitize
def sendcmd
def sendeprt
def sendport
def set_debuglevel
def set_pasv
def size
def storbinary
def storlines
def transfercmd
def voidcmd
def voidresp

Public Attributes

 af
 certfile
 debugging
 file
 host
 keyfile
 lastresp
 passiveserver
 sock
 timeout

Static Public Attributes

 debug = set_debuglevel
int debugging = 0
string host = ''
int passiveserver = 1
 port = FTP_PORT
 ssl_version = ssl.PROTOCOL_TLSv1
 welcome = None

Private Attributes

 _prot_p

Detailed Description

A FTP subclass which adds TLS support to FTP as described
in RFC-4217.

Connect as usual to port 21 implicitly securing the FTP control
connection before authenticating.

Securing the data connection requires user to explicitly ask
for it by calling prot_p() method.

Usage example:
>>> from ftplib import FTP_TLS
>>> ftps = FTP_TLS('ftp.python.org')
>>> ftps.login()  # login anonimously previously securing control channel
'230 Guest login ok, access restrictions apply.'
>>> ftps.prot_p()  # switch to secure data connection
'200 Protection level set to P'
>>> ftps.retrlines('LIST')  # list directory content securely
total 9
drwxr-xr-x   8 root     wheel        1024 Jan  3  1994 .
drwxr-xr-x   8 root     wheel        1024 Jan  3  1994 ..
drwxr-xr-x   2 root     wheel        1024 Jan  3  1994 bin
drwxr-xr-x   2 root     wheel        1024 Jan  3  1994 etc
d-wxrwxr-x   2 ftp      wheel        1024 Sep  5 13:43 incoming
drwxr-xr-x   2 root     wheel        1024 Nov 17  1993 lib
drwxr-xr-x   6 1094     wheel        1024 Sep 13 19:07 pub
drwxr-xr-x   3 root     wheel        1024 Jan  3  1994 usr
-rw-r--r--   1 root     root          312 Aug  1  1994 welcome.msg
'226 Transfer complete.'
>>> ftps.quit()
'221 Goodbye.'
>>>

Definition at line 591 of file ftplib.py.


The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index