diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-05-12 02:26:05 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-05-12 02:26:05 +0000 |
commit | a266dadd1351d10b56ec187c7b6f7af75350ed68 (patch) | |
tree | 0729c41ca0f1719c69277dc862d4704d63d6248f /include | |
parent | c42a4ace0281ee6a89f6df2af3b15563ffe98064 (diff) |
Documented new recvq and sendq stuff
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1367 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r-- | include/users.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/users.h b/include/users.h index 44005bb92..fa7ea0cfb 100644 --- a/include/users.h +++ b/include/users.h @@ -293,7 +293,19 @@ class userrec : public connection */ std::string GetWriteError(); + /** Adds to the user's write buffer. + * You may add any amount of text up to this users sendq value, if you exceed the + * sendq value, SetWriteError() will be called to set the users error string to + * "SendQ exceeded", and further buffer adds will be dropped. + */ void AddWriteBuf(std::string data); + + /** Flushes as much of the user's buffer to the file descriptor as possible. + * This function may not always flush the entire buffer, rather instead as much of it + * as it possibly can. If the send() call fails to send the entire buffer, the buffer + * position is advanced forwards and the rest of the data sent at the next call to + * this method. + */ void FlushWriteBuf(); }; |