Namespaces unified (sal+fi -> fail), Code cleanups (-> coding-style.txt), Doxygen-comments fixed.

git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1319 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
This commit is contained in:
adrian
2012-06-07 17:47:19 +00:00
parent cdd5379e19
commit b7d904140e
136 changed files with 1487 additions and 1554 deletions

View File

@ -1,11 +1,9 @@
/**
* \brief Socket based communictaion
*
* \author Horst Schirmeier, Martin Hoffmann
* \brief Socket based communictaion wrapper functions.
*/
#ifndef __SOCKETCOMM_HPP__
#define __SOCKETCOMM_HPP__
#ifndef __SOCKET_COMM_HPP__
#define __SOCKET_COMM_HPP__
#include <stdio.h>
#include <sys/types.h>
@ -15,13 +13,13 @@
#include <iostream>
#include <fstream>
#include <google/protobuf/message.h>
#define USE_SIZE_PREFIX
namespace fi {
namespace fail {
class SocketComm {
public:
/**
* Send Protobuf-generated message
* @param sockfd open socket descriptor to write to
@ -29,7 +27,6 @@ public:
* \return false if message sending failed
*/
static bool send_msg(int sockfd, google::protobuf::Message& msg);
/**
* Receive Protobuf-generated message
* @param sockfd open socket descriptor to read from
@ -39,6 +36,6 @@ public:
static bool rcv_msg(int sockfd, google::protobuf::Message& msg);
};
}
} // end-of-namespace: fail
#endif
#endif // __SOCKET_COMM_HPP__