43 Socket(
const Object *parent, std::string name, std::string address,
44 bool broadcast =
false);
55 Socket(
const Object *parent, std::string name, uint16_t port);
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 Socket_impl *pimpl_;
Socket(const Object *parent, std::string name, std::string address, bool broadcast=false)
Constructor.
Base class for all Framework's classes.
Definition: Object.h:77
namespace of the flair Framework
Definition: Ahrs.h:19
ssize_t RecvMessage(char *buf, size_t buf_len, Time timeout, char *src=NULL, size_t *src_len=NULL)
Receive a message.
unsigned long long Time
Time definition, in ns.
Definition: Object.h:49
Class encapsulating a UDP socket. It assumes packets are coming from only one distant host on a given...
Definition: Socket.h:31
void SendMessage(std::string message)
Send a message.
Base class for all Framework's classes.