updated type on size_t write16(uint16_t bytes2);
client::rx_flush is now thread safe.