Skip to content
Snippets Groups Projects
Commit ad185a6b authored by dnsadmin's avatar dnsadmin
Browse files

Timeoutok dokumentálása

parent 64c1b7ac
No related branches found
No related tags found
No related merge requests found
No preview for this file type
...@@ -25,6 +25,15 @@ class IPC_US_communicator ...@@ -25,6 +25,15 @@ class IPC_US_communicator
udp_socket_wp comm_sock; /** Socket to which messages will be sent */ udp_socket_wp comm_sock; /** Socket to which messages will be sent */
IPC_US_communicator(const IPC_US_communicator& orig); IPC_US_communicator(const IPC_US_communicator& orig);
public: 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); IPC_US_communicator(std::string socket_path, const bool master);
virtual ~IPC_US_communicator(); virtual ~IPC_US_communicator();
......
...@@ -55,6 +55,7 @@ public: ...@@ -55,6 +55,7 @@ public:
/** /**
* Binds the server to the sockaddr specified. * Binds the server to the sockaddr specified.
* It sets a 2 sec timeout to the socket.
* @param addr Sockaddr to bind to * @param addr Sockaddr to bind to
*/ */
void init(const general_sockaddr_wp& addr); void init(const general_sockaddr_wp& addr);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment