#include <UdpLogger.h>
Public Member Functions | |
UdpLogger (const char *hostname, unsigned short &port, const bool connectMode) | |
~UdpLogger () | |
int32_t | sendStr (const char *msg) |
Private Attributes | |
int32_t | udpSock |
struct sockaddr_in | udpAttr |
bool | udpConn |
Definition at line 34 of file UdpLogger.h.
fesa::UdpLogger::UdpLogger | ( | const char * | hostname, | |
unsigned short & | port, | |||
const bool | connectMode | |||
) |
Parameters: . hostname : host-name of the UDP message receiver . port : port of the UDP channel . connectMode : true = to detect unreachable host
Definition at line 20 of file UdpLogger.cpp.
fesa::UdpLogger::~UdpLogger | ( | ) |
Definition at line 89 of file UdpLogger.cpp.
References udpSock.
int32_t fesa::UdpLogger::sendStr | ( | const char * | msg | ) |
Definition at line 100 of file UdpLogger.cpp.
References udpAttr, udpConn, and udpSock.
Referenced by fesa::FesaLogger::send(), and fesa::FesaLoggerBuffer::sync().
struct sockaddr_in fesa::UdpLogger::udpAttr [read, private] |
Definition at line 41 of file UdpLogger.h.
Referenced by sendStr(), and UdpLogger().
bool fesa::UdpLogger::udpConn [private] |
Definition at line 43 of file UdpLogger.h.
Referenced by sendStr(), and UdpLogger().
int32_t fesa::UdpLogger::udpSock [private] |
Definition at line 39 of file UdpLogger.h.
Referenced by sendStr(), UdpLogger(), and ~UdpLogger().