DotNX::Ftp::DataConnection Class Reference

Represents the TCP connection on which data is transmitted. More...

Inheritance diagram for DotNX::Ftp::DataConnection:

DotNX::Core::DisposableBase

List of all members.

Public Member Functions

 DataConnection (string srv, IPAddress localAddress, int port, TransferMode m)
 Constructor.
NetworkStream GetStream ()
 Returns the stream to be used for transferring data.
void Close ()
 Closes the connection and releases the associated resources.

Protected Member Functions

override void Dispose (bool disposing)
 The actual finalizer.

Properties

IPAddress LocalAddress [get]
 Returns the IP address of the local host.
int Port [get]
 Returns the connection's port.


Detailed Description

Represents the TCP connection on which data is transmitted.


Constructor & Destructor Documentation

DotNX::Ftp::DataConnection::DataConnection ( string  srv,
IPAddress  localAddress,
int  port,
TransferMode  m 
)

Constructor.

Parameters:
srv The remote host's name or IP address.
localAddress The local system's IP address.
port The port to use for the connection. If unspecified zero is assumed.
m The transfer mode.


Member Function Documentation

NetworkStream DotNX::Ftp::DataConnection::GetStream (  ) 

Returns the stream to be used for transferring data.

Returns:
The connection's data stream.

void DotNX::Ftp::DataConnection::Close (  ) 

Closes the connection and releases the associated resources.

override void DotNX::Ftp::DataConnection::Dispose ( bool  disposing  )  [protected, virtual]

The actual finalizer.

To be overridden by those subclasses that must guarantee deterministic finalization. Implementations should ensure that finalization is performed exactly once and that base classes' implementations are explicitly called.

Parameters:
disposing When true both managed and unmanaged resources should be disposed of; when false only unmanaged resources should be dealt with.

Implements DotNX::Core::DisposableBase.


Property Documentation

IPAddress DotNX::Ftp::DataConnection::LocalAddress [get]

Returns the IP address of the local host.

int DotNX::Ftp::DataConnection::Port [get]

Returns the connection's port.


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

SourceForge.net Logo
Generated on Sat Oct 18 14:13:26 2008 for .Nick's 0.1.0 by  doxygen 1.5.7.1