38 #ifndef __UDPDATAPROTOCOL_H__
39 #define __UDPDATAPROTOCOL_H__
43 #include <QHostAddress>
77 int bind_port,
int peer_port,
78 unsigned int udp_redundancy_factor = 1);
98 virtual int receivePacket(QUdpSocket& UdpSocket,
char* buf,
const size_t n);
108 virtual int sendPacket(QUdpSocket& UdpSocket,
const QHostAddress& PeerAddress,
109 const char* buf,
const size_t n);
117 QHostAddress& peerHostAddress,
164 bool waitForReady(QUdpSocket& UdpSocket,
int timeout_msec);
169 int8_t* full_redundant_packet,
170 int full_redundant_packet_size,
171 int full_packet_size,
179 QHostAddress& PeerAddress,
180 int8_t* full_redundant_packet,
181 int full_redundant_packet_size,
182 int full_packet_size);
197 #endif // __UDPDATAPROTOCOL_H__