anchor.diff:  -spec init_req(State) -> {ok, State} | {stop, Reason} when
         State :: state(),
         Reason:: error_reason().
  -init_req(#state{sock=Sock}=State) ->
  +init_req(#state{socket=Socket}=State) ->
       Packet = construct_init_req(),
  -    case gen_tcp:send(Sock, Packet) of
  +    case gen_tcp:send(Socket, Packet) of
           ok ->
               init_res(State);
           {error, Reason} ->
  
positive.code:     State2 = State#state{next_packet_id = next_packet_id(PacketId)},
      {gen_tcp:send(Socket, Packet), State2}.
  
  -spec parse_headers(Binary, NH) -> [{Key, Value}] when
        Binary :: binary(),
        NH :: pos_integer(),
  
negative.code:                   ),
      ConnectOpts = [binary, {active, false}] ++ TcpOpts,
      case gen_tcp:connect(Address, Port, ConnectOpts, Timeout) of
          {ok, Socket} ->
              State = #state{socket=Socket,
                             options=Options,
                             registrees=Registrees},
              init_req(State);
          {error, timeout} ->
              {stop, connect_timeout};
  