aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Burwell <bburwell1@gmail.com>2013-05-01 20:35:34 -0400
committerBen Burwell <bburwell1@gmail.com>2013-05-01 20:35:34 -0400
commitb5e98849be10e0a089a0e4642d0c25a0dc0952f7 (patch)
treebd1703b6d3654446e574aff2230c5175655b6986
parentda465168cadb79dc29fa086651cdd4d7e4ab9cbf (diff)
set the request timeout to the proper interval
-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