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. |
DotNX::Ftp::DataConnection::DataConnection | ( | string | srv, | |
IPAddress | localAddress, | |||
int | port, | |||
TransferMode | m | |||
) |
Constructor.
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. |
NetworkStream DotNX::Ftp::DataConnection::GetStream | ( | ) |
Returns the stream to be used for transferring data.
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.
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.
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.