Allow FTP lib to play nice with updated socket lib.
This commit is contained in:
parent
b0a90b42e4
commit
565e59a1b7
1 changed files with 4 additions and 2 deletions
|
@ -98,7 +98,8 @@ int FTP::User::ParseCommand( std::string Command ) {
|
||||||
Connected = Passive.accept();
|
Connected = Passive.accept();
|
||||||
}
|
}
|
||||||
fprintf( stderr, "Sending LIST information\n" );
|
fprintf( stderr, "Sending LIST information\n" );
|
||||||
Connected.Send( MyDir.LIST( ActiveStreams ) );
|
std::string tmpstr = MyDir.LIST( ActiveStreams );
|
||||||
|
Connected.Send( tmpstr );
|
||||||
Connected.close( );
|
Connected.close( );
|
||||||
return 226;
|
return 226;
|
||||||
break;
|
break;
|
||||||
|
@ -145,7 +146,8 @@ int FTP::User::ParseCommand( std::string Command ) {
|
||||||
Connected = Passive.accept();
|
Connected = Passive.accept();
|
||||||
}
|
}
|
||||||
fprintf( stderr, "Sending RETR information\n" );
|
fprintf( stderr, "Sending RETR information\n" );
|
||||||
Connected.Send( MyDir.RETR( Command ) );
|
std::string tmpstr = MyDir.RETR( Command );
|
||||||
|
Connected.Send( tmpstr );
|
||||||
Connected.close();
|
Connected.close();
|
||||||
return 226;
|
return 226;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue