Augmented Socket::Buffer features.

This commit is contained in:
Thulinma 2013-03-12 16:19:46 +01:00
parent 4e16982929
commit 97b51ff39a
2 changed files with 27 additions and 0 deletions

View file

@ -30,8 +30,11 @@ namespace Socket {
std::deque<std::string> data;
public:
unsigned int size();
unsigned int bytes(unsigned int max);
void append(const std::string & newdata);
void append(const char * newdata, const unsigned int newdatasize);
void prepend(const std::string & newdata);
void prepend(const char * newdata, const unsigned int newdatasize);
std::string & get();
bool available(unsigned int count);
std::string remove(unsigned int count);