git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[NY] Removed garbage.
[stg.git]
/
projects
/
sgauthstress
/
user.cpp
diff --git
a/projects/sgauthstress/user.cpp
b/projects/sgauthstress/user.cpp
index 594879155ab12dd9a81bc4081ab62e7ed7d5dfcd..944907fe8abf74221dd12e2b3acd076a71e0abf5 100644
(file)
--- a/
projects/sgauthstress/user.cpp
+++ b/
projects/sgauthstress/user.cpp
@@
-1,5
+1,7
@@
+#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <netinet/in.h>
+#include <unistd.h> // close
#include <cstring>
#include <cerrno>
#include <cstring>
#include <cerrno>
@@
-15,8
+17,8
@@
USER::USER(const std::string & l,
: login(l),
password(pwd),
ip(i),
: login(l),
password(pwd),
ip(i),
- aliveTimeout(
0
),
- userTimeout(0),
+ aliveTimeout(
5
),
+ userTimeout(
6
0),
phase(1),
phaseChangeTime(0),
rnd(0),
phase(1),
phaseChangeTime(0),
rnd(0),
@@
-51,7
+53,7
@@
if (sock > 0)
close(sock);
}
close(sock);
}
-
const
USER & USER::operator=(const USER & rvalue)
+USER & USER::operator=(const USER & rvalue)
{
login = rvalue.login;
password = rvalue.password;
{
login = rvalue.login;
password = rvalue.password;