diff options
author | Mike Buland <eichlan@xagasoft.com> | 2010-10-16 03:02:11 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2010-10-16 03:02:11 +0000 |
commit | 9031e2af7dd4e65ec70890ee78a7cf600d1b2cc5 (patch) | |
tree | 17bc9d96b13d16d79385016c087321fc1267743f /src/client.cpp | |
parent | 93c028162318a00b9bd03fc4a48383f830cc529d (diff) | |
download | libbu++-9031e2af7dd4e65ec70890ee78a7cf600d1b2cc5.tar.gz libbu++-9031e2af7dd4e65ec70890ee78a7cf600d1b2cc5.tar.bz2 libbu++-9031e2af7dd4e65ec70890ee78a7cf600d1b2cc5.tar.xz libbu++-9031e2af7dd4e65ec70890ee78a7cf600d1b2cc5.zip |
Many, many changes. Documentation changes, renamed the socket class to
TcpSocket, fixed many other things, and finally removed ParamProc. Anything
that needs it will now have to switch to OptParser.
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/client.cpp b/src/client.cpp index becd1bd..b635c8b 100644 --- a/src/client.cpp +++ b/src/client.cpp | |||
@@ -6,7 +6,7 @@ | |||
6 | */ | 6 | */ |
7 | 7 | ||
8 | #include "bu/client.h" | 8 | #include "bu/client.h" |
9 | #include "bu/socket.h" | 9 | #include "bu/tcpsocket.h" |
10 | #include <stdlib.h> | 10 | #include <stdlib.h> |
11 | #include <errno.h> | 11 | #include <errno.h> |
12 | #include "bu/protocol.h" | 12 | #include "bu/protocol.h" |
@@ -16,7 +16,8 @@ | |||
16 | /** Read buffer size. */ | 16 | /** Read buffer size. */ |
17 | #define RBS (1024*2) | 17 | #define RBS (1024*2) |
18 | 18 | ||
19 | Bu::Client::Client( Bu::Socket *pSocket, class Bu::ClientLinkFactory *pfLink ) : | 19 | Bu::Client::Client( Bu::TcpSocket *pSocket, |
20 | class Bu::ClientLinkFactory *pfLink ) : | ||
20 | pTopStream( pSocket ), | 21 | pTopStream( pSocket ), |
21 | pSocket( pSocket ), | 22 | pSocket( pSocket ), |
22 | pProto( NULL ), | 23 | pProto( NULL ), |
@@ -59,7 +60,7 @@ void Bu::Client::processInput() | |||
59 | break; | 60 | break; |
60 | } | 61 | } |
61 | } | 62 | } |
62 | catch( Bu::SocketException &e ) | 63 | catch( Bu::TcpSocketException &e ) |
63 | { | 64 | { |
64 | pTopStream->close(); | 65 | pTopStream->close(); |
65 | bWantsDisconnect = true; | 66 | bWantsDisconnect = true; |
@@ -195,7 +196,7 @@ long Bu::Client::getOutputSize() | |||
195 | return qbWrite.getSize(); | 196 | return qbWrite.getSize(); |
196 | } | 197 | } |
197 | 198 | ||
198 | const Bu::Socket *Bu::Client::getSocket() const | 199 | const Bu::TcpSocket *Bu::Client::getSocket() const |
199 | { | 200 | { |
200 | return pSocket; | 201 | return pSocket; |
201 | } | 202 | } |