summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-23 18:03:04 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-23 18:03:04 +0000
commit5ced910478c16c8acb93c6f9bfc65886178e7dbe (patch)
tree1fd224b7158b6ffb24b2c5336c1e616531efd521 /include
parent45b07a069108d661f7d3b63b040e4db5166a2dd8 (diff)
Tidied up some socket stuff into userrec
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1476 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r--include/users.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/users.h b/include/users.h
index 2dda51984..c3a9e79b5 100644
--- a/include/users.h
+++ b/include/users.h
@@ -254,6 +254,10 @@ class userrec : public connection
*/
bool HasPermission(char* command);
+ /** Calls read() to read some data for this user using their fd.
+ */
+ int ReadData(void* buffer, size_t size);
+
/** This method adds data to the buffer of the user.
* The buffer can grow to any size within limits of the available memory,
* managed by the size of a std::string, however if any individual line in
@@ -311,6 +315,10 @@ class userrec : public connection
/** Returns the list of channels this user has been invited to but has not yet joined.
*/
InvitedList* GetInviteList();
+
+ /** Shuts down and closes the user's socket
+ */
+ void CloseSocket();
};
/** A lightweight userrec used by WHOWAS