Allow FTP lib to play nice with updated socket lib.

This commit is contained in:
Thulinma 2012-09-03 10:26:04 +02:00
parent b0a90b42e4
commit 565e59a1b7

View file

@ -98,7 +98,8 @@ int FTP::User::ParseCommand( std::string Command ) {
Connected = Passive.accept();
}
fprintf( stderr, "Sending LIST information\n" );
Connected.Send( MyDir.LIST( ActiveStreams ) );
std::string tmpstr = MyDir.LIST( ActiveStreams );
Connected.Send( tmpstr );
Connected.close( );
return 226;
break;
@ -145,7 +146,8 @@ int FTP::User::ParseCommand( std::string Command ) {
Connected = Passive.accept();
}
fprintf( stderr, "Sending RETR information\n" );
Connected.Send( MyDir.RETR( Command ) );
std::string tmpstr = MyDir.RETR( Command );
Connected.Send( tmpstr );
Connected.close();
return 226;
break;