anchor.diff:           terminate/2, code_change/3]).
   
   -record(state, {id :: binary(),
  +                channel :: binary(),
                   host :: string() | inet:ip_address(),
                   port :: inet:port_number(),
                   sock = undefined :: 'undefined' | inet:socket(),
  
positive.code: -include_lib("eunit/include/eunit.hrl").
  
  %% API
  -export([start_link/3
           ,post_msg/2
          ]).
  
  
negative.code: %%====================================================================
  
  %% @private
  init([State0 = #state{id=ID, channel=Chan}]) ->
      DrainSize = logplex_app:config(tcp_drain_buffer_size),
      {ok, State0#state{buf = logplex_drain_buffer:new(DrainSize)}}.
  
  