aboutsummaryrefslogtreecommitdiff
path: root/src/game/WorldSocket.h
diff options
context:
space:
mode:
authorMachiavelli <none@none>2010-02-12 19:59:44 +0100
committerMachiavelli <none@none>2010-02-12 19:59:44 +0100
commitce2d71e1d9cebbcba4a89323a4f745ae280ffa27 (patch)
tree711387990d8373f273a99f05b5b07e0c8bfc9192 /src/game/WorldSocket.h
parentab146caaa86e5d0f89bdbcf967f3d620b5aa3c25 (diff)
Add config option that determines the maximum allowed time between the last received CMSG_CHAR_ENUM and another incoming packet, and will disconnect the peer if this time limit is exceeded.
In other words, a time limit in which idlers can stay logged in on the character selection screen before they are disconnected. Fixes issue #335 --HG-- branch : trunk
Diffstat (limited to 'src/game/WorldSocket.h')
-rw-r--r--src/game/WorldSocket.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/WorldSocket.h b/src/game/WorldSocket.h
index 0d2917869b9..a10a5e47f40 100644
--- a/src/game/WorldSocket.h
+++ b/src/game/WorldSocket.h
@@ -232,6 +232,10 @@ class WorldSocket : protected WorldHandler
bool m_OutActive;
uint32 m_Seed;
+
+ /// The defined time where the socket will be forced to close. This is
+ /// to detect and close idle connections.
+ time_t m_TimeOutTime;
};
#endif /* _WORLDSOCKET_H */