Skip to content
Snippets Groups Projects
Commit 34d6e6df authored by Victor Perszel's avatar Victor Perszel :top:
Browse files

Minor alterations listLS

parent 0058f41c
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,7 @@ int Message::sendCD(unsigned char* dirName){
rv = poll(ufds, 1, 500);
if(rv){
if(rv == -1){
cout << "Erro no recebimento de resposta (messages.cpp::sendData)" << endl;
cout << "Erro no recebimento de resposta (messages.cpp::sendCD)" << endl;
return -1;
} else {
recv(soquete, receiptMessage, 68*sizeof(char), 0);
......@@ -74,9 +74,9 @@ int Message::sendLS(unsigned char* options){
listDir.setData(options,4,0);
while(!success){
error = send(soquete, changeDir.objToString(), changeDir.getSize()+4, 0);
error = send(soquete, listDir.objToString(), listDir.getSize()+4, 0);
if (error == -1){
cout << "Erro ao tentar mudar de diretório (messages.cpp::sendCD)" << endl;
cout << "Erro ao tentar listar diretorio (messages.cpp::sendLS)" << endl;
}
garbage = 0;
......@@ -88,7 +88,7 @@ int Message::sendLS(unsigned char* options){
rv = poll(ufds, 1, 500);
if(rv){
if(rv == -1){
cout << "Erro no recebimento de resposta (messages.cpp::sendData)" << endl;
cout << "Erro no recebimento de resposta (messages.cpp::sendLS)" << endl;
return -1;
} else {
recv(soquete, receiptMessage, 68*sizeof(char), 0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment