+#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
+#include <unistd.h> // close
#include <cstring>
#include <cerrno>
: login(l),
password(pwd),
ip(i),
- aliveTimeout(0),
- userTimeout(0),
+ aliveTimeout(5),
+ userTimeout(60),
phase(1),
phaseChangeTime(0),
rnd(0),
close(sock);
}
-const USER & USER::operator=(const USER & rvalue)
+USER & USER::operator=(const USER & rvalue)
{
login = rvalue.login;
password = rvalue.password;