private FtpControlStream CreateConnection()
{
string hostname = _uri.Host;
int port = _uri.Port;
TcpClient client = new TcpClient();
try
{
client.Connect(hostname, port);
}
catch (Exception e)
{
throw TranslateConnectException(e);
}
return new FtpControlStream(client);
}