From 25e76def21829edef7ef9bca0a028cccfabb944a Mon Sep 17 00:00:00 2001 From: Sander Vrijders Date: Wed, 10 Aug 2016 14:41:49 +0200 Subject: lib, irmd, ipcp: Add socket timeout This will add a timeout to the socket so that a process won't be blocked by the actions of the process with which it is communicating over the socket. --- include/ouroboros/config.h.in | 1 + include/ouroboros/sockets.h | 1 + 2 files changed, 2 insertions(+) (limited to 'include') diff --git a/include/ouroboros/config.h.in b/include/ouroboros/config.h.in index 60654676..d5af0c71 100644 --- a/include/ouroboros/config.h.in +++ b/include/ouroboros/config.h.in @@ -50,5 +50,6 @@ #define IRMD_ACCEPT_TIMEOUT 100 /* ms */ #define IRMD_FLOW_TIMEOUT 5000 /* ms */ #define LOG_DIR "/@LOG_DIR@/" +#define SOCKET_TIMEOUT 2000 /* ms */ #endif diff --git a/include/ouroboros/sockets.h b/include/ouroboros/sockets.h index ce7876b3..5d654cb1 100644 --- a/include/ouroboros/sockets.h +++ b/include/ouroboros/sockets.h @@ -52,5 +52,6 @@ int server_socket_open(char * file_name); int client_socket_open(char * file_name); irm_msg_t * send_recv_irm_msg(irm_msg_t * msg); +irm_msg_t * send_recv_irm_msg_b(irm_msg_t * msg); #endif -- cgit v1.2.3