anchor.diff:  -include_lib("eunit/include/eunit.hrl").
   
   %% API
  --export([start_link/3
  +-export([start_link/4
            ,post_msg/2
           ]).
   
  
positive.code:          terminate/2, code_change/3]).
  
  -record(state, {id :: binary(),
                  host :: string() | inet:ip_address(),
                  port :: inet:port_number(),
                  sock = undefined :: 'undefined' | inet:socket(),
  
negative.code: %% @doc Starts the server
  %% @end
  %%--------------------------------------------------------------------
  start_link(ChannelID, DrainID, Host, Port) ->
      gen_server:start_link(?MODULE,
                            [#state{id=DrainID,
                                    channel=ChannelID,
                                    host=Host,
                                    port=Port}],
                            []).
  