anchor.diff:      H ! {m, Msg},
       send_msg_to_pid(T, Msg);
   send_msg_to_pid([], _) ->
  -    ok.+    ok.
  +
  +
  +send_msg_to_client(Msg) ->
  +    Bin = tuple_to_toml(Msg),
  +    gen_tcp:send(Socket, Bin).
  +
  +tuple_to_toml({Name, Attrs}) ->
  +    tuple_to_toml(Name, Attrs, <<"[", Name/binary, "]">>).
  +tuple_to_toml(Name, [H|T], Result) ->
  +    {Key, Value} = H,
  +    case is_
positive.code: 
  setopts(Swocket) ->
      inet:setopts(Swocket, [{active, 300}, {packet, 0}, binary]).
  
  % [{<<"device">>,<<"android">>},{<<"id">>,<<"1">>}]
  parse_user_info(UserInfo) ->
  
negative.code: 
  handle_info({tcp, Socket, Data}, #state{socket = Socket} = State) ->
      {ok, Toml} = etoml:parse(Data),
      {ok, NewState} = process_packet(Toml, State),
      {noreply, NewState, NewState#state.heartbeat_timeout};
  % tcp connection change to passive
  handle_info({tcp_passive, Swocket}, #state{socket = Swocket} = State) ->
  