anchor.diff:  %% ----------------------------------------------------------------------------
   %% @private deliver_sm receiver 
   %% ----------------------------------------------------------------------------
  -handle_info({tcp, Socket, <<_Len:32, ?DELIVER_SM:32, ?ESME_ROK:32,
  -                             Seq:32, Data/binary>>},
  -                             #state{callback_mo=MO,
  -                                    callback_dr=DR} = State) ->
  +handle_info({tcp, Socket, <<_Len:32, ?DELIVER_SM:32, ?ESME_ROK:32, Seq:32,
  +                            Data/binary>>}, State) ->
     {cstring, _SvcType, Data2}      = get_cstring(Data),
     <<_SrcTonNpi:16, Data3/binary>> = Data2,
     {cstring, SrcAddr, Data4}       = get_cstring(Data3),
  
positive.code: }).
  
  -record(state, {
    connected = false :: boolean(), 
    seq_num   =  1    :: integer(),
    binding   =  0    :: integer(),
    status    = -1    :: integer(),
    from_list = #{}   :: map(),
    callback_mo       :: {atom(), atom()},
    callback_dr       :: {atom(), atom()},
    socket            :: port(),
    tref              :: {integer(), reference()}
  }).
  
  %% ----------------------------------------------------------------------------
  
negative.code: -include("commands.hrl").
  -include("command_statuses.hrl").
  
  -record(mo_part, {
    max_parts :: integer(),
    src_addr  :: iodata(),
    dst_addr  :: iodata(),
    messages  :: [iodata()]
  }).
  
  -record(conn_state, {
    host              :: iodata(),
    port              :: integer(),
  