summaryrefslogtreecommitdiff
path: root/src/socket.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/socket.cpp')
-rw-r--r--src/socket.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/socket.cpp b/src/socket.cpp
index aa028b8a5..36b6d1d1e 100644
--- a/src/socket.cpp
+++ b/src/socket.cpp
@@ -48,10 +48,11 @@ InspSocket::InspSocket()
this->state = I_DISCONNECTED;
}
-InspSocket::InspSocket(int newfd)
+InspSocket::InspSocket(int newfd, char* ip)
{
this->fd = newfd;
this->state = I_CONNECTED;
+ this->IP = ip;
}
InspSocket::InspSocket(std::string host, int port, bool listening, unsigned long maxtime)