2010-02-03 11:56:30 +00:00
|
|
|
-module({{srvid}}).
|
|
|
|
-behaviour(gen_server).
|
|
|
|
-define(SERVER, ?MODULE).
|
|
|
|
|
|
|
|
%% ------------------------------------------------------------------
|
|
|
|
%% API Function Exports
|
|
|
|
%% ------------------------------------------------------------------
|
|
|
|
|
|
|
|
-export([start_link/0]).
|
|
|
|
|
|
|
|
%% ------------------------------------------------------------------
|
|
|
|
%% gen_server Function Exports
|
|
|
|
%% ------------------------------------------------------------------
|
|
|
|
|
2011-07-13 15:59:07 +00:00
|
|
|
-export([init/1, handle_call/3, handle_cast/2, handle_info/2,
|
|
|
|
terminate/2, code_change/3]).
|
2010-02-03 11:56:30 +00:00
|
|
|
|
|
|
|
%% ------------------------------------------------------------------
|
|
|
|
%% API Function Definitions
|
|
|
|
%% ------------------------------------------------------------------
|
|
|
|
|
|
|
|
start_link() ->
|
2011-07-13 15:59:07 +00:00
|
|
|
gen_server:start_link({local, ?SERVER}, ?MODULE, [], []).
|
2010-02-03 11:56:30 +00:00
|
|
|
|
|
|
|
%% ------------------------------------------------------------------
|
|
|
|
%% gen_server Function Definitions
|
|
|
|
%% ------------------------------------------------------------------
|
|
|
|
|
|
|
|
init(Args) ->
|
2011-07-13 15:59:07 +00:00
|
|
|
{ok, Args}.
|
2010-02-03 11:56:30 +00:00
|
|
|
|
|
|
|
handle_call(_Request, _From, State) ->
|
2011-07-13 15:59:07 +00:00
|
|
|
{noreply, ok, State}.
|
2010-02-03 11:56:30 +00:00
|
|
|
|
|
|
|
handle_cast(_Msg, State) ->
|
2011-07-13 15:59:07 +00:00
|
|
|
{noreply, State}.
|
2010-02-03 11:56:30 +00:00
|
|
|
|
|
|
|
handle_info(_Info, State) ->
|
2011-07-13 15:59:07 +00:00
|
|
|
{noreply, State}.
|
2010-02-03 11:56:30 +00:00
|
|
|
|
|
|
|
terminate(_Reason, _State) ->
|
2011-07-13 15:59:07 +00:00
|
|
|
ok.
|
2010-02-03 11:56:30 +00:00
|
|
|
|
|
|
|
code_change(_OldVsn, State, _Extra) ->
|
2011-07-13 15:59:07 +00:00
|
|
|
{ok, State}.
|
2010-02-03 11:56:30 +00:00
|
|
|
|
|
|
|
%% ------------------------------------------------------------------
|
|
|
|
%% Internal Function Definitions
|
|
|
|
%% ------------------------------------------------------------------
|
|
|
|
|