Pure-python implementation of Connection.send_offset