Skip to content

Instantly share code, notes, and snippets.

@jkvor
Created December 22, 2010 23:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jkvor/752329 to your computer and use it in GitHub Desktop.
Save jkvor/752329 to your computer and use it in GitHub Desktop.
-module(test).
-behaviour(gen_server).
-export([start_link/0, init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]).
%% API functions
start_link() ->
gen_server:start(?MODULE, [], []).
init([]) ->
{ok, []}.
handle_call(_Msg, _From, State) ->
{reply, unknown_message, State}.
handle_cast(_Msg, State) ->
{noreply, State}.
handle_info(_Info, State) ->
{noreply, State}.
terminate(_Reason, _State) ->
ok.
code_change(_OldVsn, State, _Extra) ->
{ok, State}.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment