aboutsummaryrefslogtreecommitdiff
path: root/src/client.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2007-10-04 10:46:46 +0000
committerMike Buland <eichlan@xagasoft.com>2007-10-04 10:46:46 +0000
commit86f9fbefa58d91e151190c969216c751573bc664 (patch)
tree4e13de2666bfb063964877986dc7b8d310714483 /src/client.h
parentb3eef5b0b82c20a9f11868ba376f6bb2d94faae4 (diff)
downloadlibbu++-86f9fbefa58d91e151190c969216c751573bc664.tar.gz
libbu++-86f9fbefa58d91e151190c969216c751573bc664.tar.bz2
libbu++-86f9fbefa58d91e151190c969216c751573bc664.tar.xz
libbu++-86f9fbefa58d91e151190c969216c751573bc664.zip
Discovered that the Bu::Client::disconnect() function didn't do anything. That
has been fixed, it now safely disconnects after emptying the Client's outgoing buffer. Added some more helpers to Bu::FString. Added the beginings of ProtocolHttp using a new method for processing protocols that's based more strongly on an NFA state machine, this makes sense, but I never had the desire to actually try implementing it before. It's working pretty well.
Diffstat (limited to '')
-rw-r--r--src/client.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client.h b/src/client.h
index 4188a49..0b670e2 100644
--- a/src/client.h
+++ b/src/client.h
@@ -44,13 +44,12 @@ namespace Bu
44 void clearProtocol(); 44 void clearProtocol();
45 45
46 bool isOpen(); 46 bool isOpen();
47 void close();
47 48
48 const Bu::Socket *getSocket() const; 49 const Bu::Socket *getSocket() const;
49 50
50 /**
51 *@todo Make this not suck.
52 */
53 void disconnect(); 51 void disconnect();
52 bool wantsDisconnect();
54 53
55 private: 54 private:
56 Bu::Socket *pSocket; 55 Bu::Socket *pSocket;
@@ -58,6 +57,7 @@ namespace Bu
58 Bu::FString sReadBuf; 57 Bu::FString sReadBuf;
59 int nRBOffset; 58 int nRBOffset;
60 Bu::FString sWriteBuf; 59 Bu::FString sWriteBuf;
60 bool bWantsDisconnect;
61 }; 61 };
62} 62}
63 63