Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sr03_devoir1
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Luca Rougeron
sr03_devoir1
Compare revisions
fc6261f4d330a8c95c0d3206f08f63e5fe6eb198 to ff24ac62692021575d23e5e5d19614fb8619687c
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
lrougero/sr03_devoir1
Select target project
No results found
ff24ac62692021575d23e5e5d19614fb8619687c
Select Git revision
Branches
main
master
Swap
Target
lrougero/sr03_devoir1
Select target project
lrougero/sr03_devoir1
1 result
fc6261f4d330a8c95c0d3206f08f63e5fe6eb198
Select Git revision
Branches
main
master
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
modifs
· 26c4ee9e
Luca Rougeron
authored
2 years ago
26c4ee9e
aah
· ff24ac62
Luca Rougeron
authored
2 years ago
ff24ac62
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/client/Client.java
+1
-1
1 addition, 1 deletion
src/client/Client.java
src/client/ClientMessageReceptor.java
+3
-1
3 additions, 1 deletion
src/client/ClientMessageReceptor.java
src/server/Main.java
+0
-2
0 additions, 2 deletions
src/server/Main.java
with
4 additions
and
4 deletions
src/client/Client.java
View file @
ff24ac62
...
...
@@ -60,7 +60,7 @@ public class Client {
this
.
user
.
out
.
writeUTF
(
"exit"
);
sc
.
close
();
System
.
out
.
println
(
"Disconnected"
);
break
;
System
.
exit
(
1
)
;
}
else
{
out
.
writeUTF
(
to_send
);
}
...
...
This diff is collapsed.
Click to expand it.
src/client/ClientMessageReceptor.java
View file @
ff24ac62
...
...
@@ -34,7 +34,9 @@ public class ClientMessageReceptor extends Thread{
System
.
out
.
println
(
message
);
}
catch
(
EOFException
e
){
this
.
client
.
sock
.
close
();
break
;
System
.
out
.
println
(
"___Déconnexion du serveur___"
);
System
.
out
.
println
(
"___Fin programme___"
);
System
.
exit
(
1
);
}
}
}
catch
(
IOException
e
)
{
...
...
This diff is collapsed.
Click to expand it.
src/server/Main.java
View file @
ff24ac62
package
server
;
import
java.util.List
;
public
class
Main
{
public
static
void
main
(
String
[]
args
)
{
Serveur
serveur
=
new
Serveur
();
...
...
This diff is collapsed.
Click to expand it.