From ad185a6b44b3c36e59b4ad1a2c49076174b464c0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Eckl=2C=20M=C3=A1t=C3=A9?= <ecklm94@gmail.com>
Date: Fri, 27 May 2016 14:28:51 +0200
Subject: [PATCH] =?UTF-8?q?Timeoutok=20dokument=C3=A1l=C3=A1sa?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 dns.db                        | Bin 12288 -> 12288 bytes
 include/IPC_US_communicator.h |   9 +++++++++
 include/dns_server.h          |   1 +
 3 files changed, 10 insertions(+)

diff --git a/dns.db b/dns.db
index 730d31e4fb263c56b50e771c1a5807a5b58fdf33..25723b457d7869ff2df1284494d7d81392893205 100644
GIT binary patch
delta 100
zcmZojXh@hK%_u%m#+gxkW5Pmye*UctEc|K={CD`(_}lq|HVX=f@#|<Yu`w9)Yci!K
zXXhjq<QMA|Cuis-<)-RolsX!k8tIvt=^2`v>lqpt@Ci%~l22w~U|>+6Sg5@Dj=YKh
E0Q=|}6#xJL

delta 87
zcmZojXh@hK%_ufe#+gxUW5Pmyeg*~x7XBax{yY3z`P=z}HVY~^@lOttPgYlDVq-Ao
rmuE^%&dy0J$S>9_PR`Iv%1zbFD0MV6GS@TEGte{S6WDx5UPS-^;~^H=

diff --git a/include/IPC_US_communicator.h b/include/IPC_US_communicator.h
index 75ecd03..2a4eff9 100644
--- a/include/IPC_US_communicator.h
+++ b/include/IPC_US_communicator.h
@@ -25,6 +25,15 @@ class IPC_US_communicator
 	udp_socket_wp comm_sock; /** Socket to which messages will be sent */
 	IPC_US_communicator(const IPC_US_communicator& orig);
 public:
+	/**
+	 * Creates an IPC object in the role of the server if master is true,
+	 * and in the role of the controller otherwise.
+	 * A 5 sec timeout is set to the socket. 
+	 * @param socket_path Path to create the socket.
+	 * It will be uesd for abstract namespace UNIX domain socket.
+	 * @param master Signts if the object would play the role of a server
+	 * or a controller.
+	 */
 	IPC_US_communicator(std::string socket_path, const bool master);
 
 	virtual ~IPC_US_communicator();
diff --git a/include/dns_server.h b/include/dns_server.h
index 66552fe..7e6ab46 100644
--- a/include/dns_server.h
+++ b/include/dns_server.h
@@ -55,6 +55,7 @@ public:
 
 	/**
 	 * Binds the server to the sockaddr specified.
+	 * It sets a 2 sec timeout to the socket.
 	 * @param addr Sockaddr to bind to
 	 */
 	void init(const general_sockaddr_wp& addr);
-- 
GitLab