From 5ced910478c16c8acb93c6f9bfc65886178e7dbe Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 23 May 2005 18:03:04 +0000 Subject: Tidied up some socket stuff into userrec git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1476 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/users.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include') 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 -- cgit v1.2.3