From 86f9fbefa58d91e151190c969216c751573bc664 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 4 Oct 2007 10:46:46 +0000 Subject: 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. --- src/client.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/client.h') 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 void clearProtocol(); bool isOpen(); + void close(); const Bu::Socket *getSocket() const; - /** - *@todo Make this not suck. - */ void disconnect(); + bool wantsDisconnect(); private: Bu::Socket *pSocket; @@ -58,6 +57,7 @@ namespace Bu Bu::FString sReadBuf; int nRBOffset; Bu::FString sWriteBuf; + bool bWantsDisconnect; }; } -- cgit v1.2.3