From b5e98849be10e0a089a0e4642d0c25a0dc0952f7 Mon Sep 17 00:00:00 2001 From: Ben Burwell Date: Wed, 1 May 2013 20:35:34 -0400 Subject: set the request timeout to the proper interval --- localchat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3