aboutsummaryrefslogtreecommitdiff
path: root/localchat.c
diff options
context:
space:
mode:
Diffstat (limited to 'localchat.c')
-rw-r--r--localchat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/localchat.c b/localchat.c
index d0c3a16..099f1db 100644
--- a/localchat.c
+++ b/localchat.c
@@ -26,7 +26,7 @@
#define CHAT_PORT 6064
#define BROADCAST_IP "192.168.130.255"
#define GLOBAL_MSG_LENGTH 1024
-#define REQUEST_TIMEOUT 10
+#define REQUEST_TIMEOUT 5
#define SESSION_TIMEOUT 30
#define RR 0
@@ -60,6 +60,7 @@ struct sockaddr_in accepted_addr;
// indicates whether needs to respond to a request
int respond_to_chat_request = 0;
+// for timeout of chat requests
time_t chat_requested_time;
// include functions