Module findf_server

findfのサーバー.

Behaviours: gen_server.

Authors: M. Hiyama.

Description

findfのサーバー

Data Types

file_error()

file_error() = term()

fileモジュールの関数が発生させるエラー. file:format_error/1 に渡して人間可読な文字列が得られる.

state()

state() = #state{dirs = [string()], exts = [string()]}

ディレクトリのリストdirsと拡張子のリストextsを保持するレコード. 初期値は、dirsもextsも空リスト.

void()

void() = ok | void | none

Function Index

code_change/3Convert process state when code is changed.
handle_call/3Handling call messages.
handle_cast/2Handling cast messages.
handle_info/2Handling all non call/cast messages.
init/1Initiates the server.
start/0
start/1
start_link/0Starts the server.
start_link/1
terminate/2This function is called by a gen_server when it is about to terminate.

Function Details

code_change/3

code_change(OldVsn, State, Extra) -> {ok, NewState}

Convert process state when code is changed

handle_call/3

handle_call(X1::Request, From, State) -> {reply, Reply, State} | {reply, Reply, State, Timeout} | {noreply, State} | {noreply, State, Timeout} | {stop, Reason, Reply, State} | {stop, Reason, State}

Handling call messages

handle_cast/2

handle_cast(Msg, State) -> {noreply, State} | {noreply, State, Timeout} | {stop, Reason, State}

Handling cast messages

handle_info/2

handle_info(Info, State) -> {noreply, State} | {noreply, State, Timeout} | {stop, Reason, State}

Handling all non call/cast messages

init/1

init(InitState::Args) -> {ok, State} | {ok, State, Timeout} | ignore | {stop, Reason}

Initiates the server

start/0

start() -> any()

start/1

start(InitState) -> any()

start_link/0

start_link() -> {ok, Pid} | ignore | {error, Error}

Starts the server

start_link/1

start_link(InitState) -> any()

terminate/2

terminate(Reason, State) -> void()

This function is called by a gen_server when it is about to terminate. It should be the opposite of Module:init/1 and do any necessary cleaning up. When it returns, the gen_server terminates with Reason. The return value is ignored.


Generated by EDoc, Dec 3 2008, 13:34:23.