update sendrecv in elixir