16 typedef int UDTSOCKET;
30 bool blockOnSend =
false,
bool blockOnReceive =
true);
32 void Listen(
const unsigned int port,
const std::string localAddress =
"ANY");
35 bool Connect(
const unsigned int port,
const std::string distantAddress,
37 ssize_t
SendMessage(
const char *message,
size_t message_len,
Time timeout);
41 uint16_t HostToNetwork16(uint16_t data);
42 uint32_t NetworkToHost32(uint32_t data);
43 uint32_t HostToNetwork32(uint32_t data);
Interface class encapsulating a connected socket. Preserves packets order and guaranty delivery...
Definition: ConnectedSocket.h:27
void Listen(const unsigned int port, const std::string localAddress="ANY")
Returns a socket which listens on a specific port/address.
Base class for all Framework's classes.
Definition: Object.h:83
namespace of the flair Framework
Definition: Ahrs.h:19
ssize_t RecvMessage(char *buf, size_t buf_len, Time timeout)
Receive a message.
unsigned long long Time
Time definition, in ns.
Definition: Object.h:55
bool Connect(const unsigned int port, const std::string distantAddress, Time timeout)
Returns a socket connected to a distant host.
Class defining a socket working in connected mode.
Class encapsulating a UDT socket.
Definition: UdtSocket.h:27
uint16_t NetworkToHost16(uint16_t data)
! See Socket.h for a more generic implementation of network/host endianness
UdtSocket * Accept(Time timeout)
Returns a socket on a new incoming connexion.
ssize_t SendMessage(const char *message, size_t message_len, Time timeout)
Send a message waiting up to timeout ns.