summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 48bb12430..493cbbade 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -59,7 +59,11 @@ userrec::userrec()
invites.clear();
}
-
+void userrec::CloseSocket()
+{
+ shutdown(this->fd);
+ close(this->fd);
+}
char* userrec::GetFullHost()
{
@@ -67,6 +71,15 @@ char* userrec::GetFullHost()
return result;
}
+int userrec::ReadData(void* buffer, size_t size)
+{
+ if (this->fd > -1)
+ {
+ return read(this->fd, buffer, size)
+ }
+ else return 0;
+}
+
char* userrec::GetFullRealHost()
{