summaryrefslogtreecommitdiff
path: root/lib/Socket.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Socket.cc')
-rw-r--r--lib/Socket.cc22
1 files changed, 0 insertions, 22 deletions
diff --git a/lib/Socket.cc b/lib/Socket.cc
index f3f4c0f..5d80783 100644
--- a/lib/Socket.cc
+++ b/lib/Socket.cc
@@ -41,28 +41,6 @@ bool Socket::CanWrite(void) {
return connected;
}
-size_t Socket::WriteFile(Output & o) {
- char c;
- size_t s = 0;
-
- while (!IsClosed()) {
- s += read(&c, 1);
- o.write(&c, 1);
- }
- return s;
-}
-
-size_t Socket::ReadFile(Input & i) {
- char c;
- size_t s = 0;
-
- while (!i.IsClosed()) {
- s += i.read(&c, 1);
- write(&c, 1);
- }
- return s;
-}
-
/***********************************************\
* Toute la suite n'est pas à décrire. Consulter *