Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
redes1-trabalho1
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Harbor Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eduardo Machado
redes1-trabalho1
Commits
34d6e6df
Commit
34d6e6df
authored
9 years ago
by
Victor Perszel
Browse files
Options
Downloads
Patches
Plain Diff
Minor alterations listLS
parent
0058f41c
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/messages.cpp
+4
-4
4 additions, 4 deletions
src/messages.cpp
with
4 additions
and
4 deletions
src/messages.cpp
+
4
−
4
View file @
34d6e6df
...
...
@@ -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::sendD
ata
)"
<<
endl
;
cout
<<
"Erro no recebimento de resposta (messages.cpp::send
C
D)"
<<
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
,
change
Dir
.
objToString
(),
change
Dir
.
getSize
()
+
4
,
0
);
error
=
send
(
soquete
,
list
Dir
.
objToString
(),
list
Dir
.
getSize
()
+
4
,
0
);
if
(
error
==
-
1
){
cout
<<
"Erro ao tentar
mudar de
diret
ó
rio (messages.cpp::send
CD
)"
<<
endl
;
cout
<<
"Erro ao tentar
listar
diret
o
rio (messages.cpp::send
LS
)"
<<
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::send
Data
)"
<<
endl
;
cout
<<
"Erro no recebimento de resposta (messages.cpp::send
LS
)"
<<
endl
;
return
-
1
;
}
else
{
recv
(
soquete
,
receiptMessage
,
68
*
sizeof
(
char
),
0
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment