Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
col3-bibtp2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Info604
col3-bibtp2
Commits
6b67c789
Commit
6b67c789
authored
Apr 08, 2020
by
pernelle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correction du code initial
parent
bc28b24e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
communCOL3-TP2.c
communCOL3-TP2.c
+2
-5
communCOL3-TP2.h
communCOL3-TP2.h
+2
-1
No files found.
communCOL3-TP2.c
View file @
6b67c789
...
...
@@ -21,9 +21,6 @@
c
/**
cette fonction lit une structure (armee) sur la socket (sock) et
retourne le nb octet recu
...
...
@@ -37,7 +34,7 @@ int lireArmeeCOL3(int sock, armee * monarmee) {
taille
=
sizeof
(
armee
);
if
(
!
NCURSE
)
printf
(
"%s %d %s "
,
"--> en attente reception message ("
,
taille
,
" )...
\n
"
);
printf
(
"%s %d %s "
,
"--> en attente reception message ("
,
taille
,
" )...
\n
"
);
while
(
nbtotal
<
taille
)
{
...
...
@@ -48,7 +45,7 @@ int lireArmeeCOL3(int sock, armee * monarmee) {
else
nbtotal
+=
nbrecu
;
}
if
(
!
NCURSE
)
printf
(
"%s %d %s"
,
"--> reception message [OK] : nbrecu = "
,
nbrecu
,
"
\n
"
);
printf
(
"%s %d %s"
,
"--> reception message [OK] : nbrecu = "
,
nbrecu
,
"
\n
"
);
return
nbrecu
;
}
...
...
communCOL3-TP2.h
View file @
6b67c789
...
...
@@ -16,7 +16,8 @@
#define TPS_FAB_BLO 5
#define TPS_FAB_BLE 2
/* type de balise (BLO= Baliste LOurde, BLE=Baliste LEgere) */
typedef
enum
{
BLO
=
1
,
BLE
=
0
}
type_baliste
;
/* structure d'une armmée composé de baliste */
typedef
struct
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment