class PFTP

File Transfer Protocol base class

Inheritance:


Public Methods

[more]BOOL SendPORT ( const PIPSocket::Address & addr, WORD port )
Send the PORT command for a transfer.

Public Members

[more]enum Commands
FTP commands
[more]enum RepresentationType
Types for file transfer
[more]enum DataChannelType
File transfer mode on data channel
[more]enum NameTypes
Listing types

Protected Methods

[more] PFTP ()
Construct an ineternal File Transfer Protocol channel


Inherited from PInternetProtocol:

Public Methods

ovirtual BOOL Read( void* buf, PINDEX len )
ovirtual BOOL Write( const void* buf, PINDEX len )
ovoid SetReadLineTimeout( const PTimeInterval & t )
ovirtual BOOL Connect( const PString & address, WORD port = 0 )
ovirtual BOOL Accept( PSocket & listener )
oconst PString& GetDefaultService() const
oPIPSocket* GetSocket() const
ovirtual BOOL WriteLine( const PString & line )
ovirtual BOOL ReadLine( PString & line, BOOL allowContinuation = FALSE )
ovirtual void UnRead( int ch )
ovirtual BOOL WriteCommand( PINDEX cmdNumber )
ovirtual BOOL ReadCommand( PINDEX & num, PString & args )
ovirtual BOOL WriteResponse( unsigned numericCode, const PString & info )
ovirtual BOOL ReadResponse()
ovirtual int ExecuteCommand( PINDEX cmdNumber )
oint GetLastResponseCode() const
oPString GetLastResponseInfo() const

Protected Methods

ovirtual PINDEX ParseResponse( const PString & line )


Inherited from PIndirectChannel:

Public Methods

Construction

Overrides from class PObject

Overrides from class PChannel

Channel establish functions

Protected Fields

oPChannel* readChannel
oBOOL readAutoDelete
oPChannel* writeChannel
oBOOL writeAutoDelete
oPReadWriteMutex channelPointerMutex

Protected Methods

ovirtual BOOL OnOpen()


Inherited from PChannel:

Public Methods

Information functions

Reading functions

Writing functions

Miscellaneous functions

ostatic BOOL ConvertOSError( int libcReturnValue, Errors & lastError, int & osError )

Public Members

Error functions

Protected Fields

oint os_handle
oErrors lastErrorCode[NumErrorGroups+1]
oint lastErrorNumber[NumErrorGroups+1]
oPINDEX lastReadCount
oPINDEX lastWriteCount
oPTimeInterval readTimeout
oPTimeInterval writeTimeout

Protected Methods

ovirtual BOOL ConvertOSError( int libcReturnValue, ErrorGroup group = LastGeneralError )
oBOOL SetErrorValues( Errors errorCode, int osError, ErrorGroup group = LastGeneralError )
oint ReadCharWithTimeout( PTimeInterval & timeout )


Inherited from PObject:

Public Methods

Run Time Type functions

I/O functions

Public Members

Comparison functions


Documentation

File Transfer Protocol base class
oenum Commands
FTP commands

oenum RepresentationType
Types for file transfer

oenum DataChannelType
File transfer mode on data channel

oenum NameTypes
Listing types

oBOOL SendPORT( const PIPSocket::Address & addr, WORD port )
Send the PORT command for a transfer.
Parameters:
- addr Address for PORT connection. IP address to connect back to
- port Port number for PORT connection.
Returns:
Boolean indicated PORT command was successful

o PFTP()
Construct an ineternal File Transfer Protocol channel


Direct child classes:
PFTPServer
PFTPClient

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.