44 bool broadcast =
false);
79 void SendMessage(
const char *message,
size_t message_len);
98 ssize_t
RecvMessage(
char *buf,
size_t buf_len,
Time timeout,
char *src = NULL,
99 size_t *src_len = NULL);
101 void NetworkToHost(
char *data,
size_t dataSize);
102 void HostToNetwork(
char *data,
size_t dataSize);
105 class UdpSocket_impl *pimpl_;
111 #endif // UDPSOCKET_H
Base class for all Framework's classes.
Definition: Object.h:83
namespace of the flair Framework
Definition: Ahrs.h:19
unsigned long long Time
Time definition, in ns.
Definition: Object.h:55
ssize_t RecvMessage(char *buf, size_t buf_len, Time timeout, char *src=NULL, size_t *src_len=NULL)
Receive a message.
Base class for all Framework's classes.
void SendMessage(std::string message)
Send a message.
UdpSocket(const Object *parent, std::string name, std::string address, bool broadcast=false)
Constructor.
Class encapsulating a UDP socket. It assumes packets are coming from only one distant host on a given...
Definition: UdpSocket.h:31