repositories
/
TD_SR.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use stderr where appropriate.
[TD_SR.git]
/
TD2
/
ClientSimplifie.java
diff --git
a/TD2/ClientSimplifie.java
b/TD2/ClientSimplifie.java
index fd3cd7c9162dc3937d1a397b1c1cf0489ffe819e..d247a9383cc852cc6094e63953740b1b9ec09ddf 100644
(file)
--- a/
TD2/ClientSimplifie.java
+++ b/
TD2/ClientSimplifie.java
@@
-27,14
+27,14
@@
public class ClientSimplifie {
sock = new Socket(adresseIPServeur, portServeur);
}
catch (IOException e) {
sock = new Socket(adresseIPServeur, portServeur);
}
catch (IOException e) {
- System.
out
.println("IOException: " + e);
+ System.
err
.println("IOException: " + e);
}
InputStream IStream = null;
try {
IStream = sock.getInputStream();
}
catch (IOException e) {
}
InputStream IStream = null;
try {
IStream = sock.getInputStream();
}
catch (IOException e) {
- System.
out
.println("IOException: " + e);
+ System.
err
.println("IOException: " + e);
}
InputStreamReader IMesg = new InputStreamReader(IStream);
lecture = new BufferedReader(IMesg);
}
InputStreamReader IMesg = new InputStreamReader(IStream);
lecture = new BufferedReader(IMesg);
@@
-44,7
+44,7
@@
public class ClientSimplifie {
OStream = sock.getOutputStream();
}
catch (IOException e) {
OStream = sock.getOutputStream();
}
catch (IOException e) {
- System.
out
.println("IOException: " + e);
+ System.
err
.println("IOException: " + e);
}
ecriture = new PrintWriter(OStream);
}
}
ecriture = new PrintWriter(OStream);
}
@@
-69,7
+69,7
@@
public class ClientSimplifie {
line = lecture.readLine();
}
catch (IOException e) {
line = lecture.readLine();
}
catch (IOException e) {
- System.
out
.println("IOException: " + e);
+ System.
err
.println("IOException: " + e);
}
return line;
}
}
return line;
}
@@
-83,7
+83,7
@@
public class ClientSimplifie {
lecture.close();
}
catch (IOException e) {
lecture.close();
}
catch (IOException e) {
- System.
out
.println("IOException: " + e);
+ System.
err
.println("IOException: " + e);
}
}
}
}