anchor.diff:  -include_lib("eunit/include/eunit.hrl").
   
   %% API
  --export([start_link/3
  +-export([start_link/4
            ,post_msg/2
           ]).
   
  
positive.code: %%====================================================================
  
  %% @private
  init([State0 = #state{}]) ->
      DrainSize = logplex_app:config(tcp_drain_buffer_size),
      {ok, State0#state{buf = logplex_drain_buffer:new(DrainSize)}}.
  
  
negative.code:          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(),
  