12#define WIB_RESPONSE_PACKET_BUFFER_SIZE 4048
19 void Setup(std::string
const & address, uint16_t port_offset = 0);
25 uint32_t
ReadWithRetry(uint16_t address,uint8_t retry_count=10);
26 uint32_t
Read(uint16_t address);
27 void WriteWithRetry(uint16_t address, uint32_t value, uint8_t retry_count=10);
28 void Write(uint16_t address,uint32_t value);
29 void Write(uint16_t address,std::vector<uint32_t>
const & values);
30 void Write(uint16_t address,uint32_t
const * values,
size_t word_count);
#define WIB_RESPONSE_PACKET_BUFFER_SIZE
void SetWriteAck(bool val)
struct sockaddr_in writeAddr
void Setup(std::string const &address, uint16_t port_offset=0)
std::string remoteAddress
void Write(uint16_t address, uint32_t value)
void WriteWithRetry(uint16_t address, uint32_t value, uint8_t retry_count=10)
uint32_t ReadWithRetry(uint16_t address, uint8_t retry_count=10)
BNL_UDP(const BNL_UDP &other)
uint32_t Read(uint16_t address)
void FlushSocket(int sock)
uint64_t total_retry_count
struct sockaddr_in readAddr
BNL_UDP & operator=(const BNL_UDP &)
void ResizeBuffer(size_t size=WIB_RESPONSE_PACKET_BUFFER_SIZE)