summaryrefslogtreecommitdiff
path: root/priv/templates/simplesrv.erl
diff options
context:
space:
mode:
authorDave Smith <dizzyd@dizzyd.com>2010-02-13 10:17:44 -0700
committerDave Smith <dizzyd@dizzyd.com>2010-02-13 10:17:44 -0700
commitd486dff6e8c05ec87bd18c0ae1d3d050d9703ce2 (patch)
treeeb27107022dcd735f413d35dd9ea7eba254715a2 /priv/templates/simplesrv.erl
parent788bd3df726933334ee9c570e1e920829c5d1c4c (diff)
parent71c974e341173da9c5da6f6d6781e2ee52aec251 (diff)
Merging with OJ's branch
Diffstat (limited to 'priv/templates/simplesrv.erl')
-rw-r--r--priv/templates/simplesrv.erl49
1 files changed, 49 insertions, 0 deletions
diff --git a/priv/templates/simplesrv.erl b/priv/templates/simplesrv.erl
new file mode 100644
index 0000000..8db932e
--- /dev/null
+++ b/priv/templates/simplesrv.erl
@@ -0,0 +1,49 @@
+-module({{srvid}}).
+-behaviour(gen_server).
+-define(SERVER, ?MODULE).
+
+%% ------------------------------------------------------------------
+%% API Function Exports
+%% ------------------------------------------------------------------
+
+-export([start_link/0]).
+
+%% ------------------------------------------------------------------
+%% gen_server Function Exports
+%% ------------------------------------------------------------------
+
+-export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]).
+
+%% ------------------------------------------------------------------
+%% API Function Definitions
+%% ------------------------------------------------------------------
+
+start_link() ->
+ gen_server:start_link({local, ?SERVER}, ?MODULE, [], []).
+
+%% ------------------------------------------------------------------
+%% gen_server Function Definitions
+%% ------------------------------------------------------------------
+
+init(Args) ->
+ {ok, Args}.
+
+handle_call(_Request, _From, State) ->
+ {noreply, ok, State}.
+
+handle_cast(_Msg, State) ->
+ {noreply, State}.
+
+handle_info(_Info, State) ->
+ {noreply, State}.
+
+terminate(_Reason, _State) ->
+ ok.
+
+code_change(_OldVsn, State, _Extra) ->
+ {ok, State}.
+
+%% ------------------------------------------------------------------
+%% Internal Function Definitions
+%% ------------------------------------------------------------------
+