Module ezlib

Behaviours: gen_server.

Data Types

zlib_socket()

zlib_socket() = #zlibsock{sockmod = atom(), socket = inet:socket(), zlibport = port()}

Function Index

close/1
code_change/3
controlling_process/2
disable_zlib/1
enable_zlib/2
get_sockmod/1
handle_call/3
handle_cast/2
handle_info/2
init/1
peername/1
recv/2
recv/3
recv_data/2
send/2
setopts/2
sockname/1
start_link/0
terminate/2

Function Details

close/1

close(Zlibsock::zlib_socket()) -> ok

code_change/3

code_change(OldVsn, State, Extra) -> any()

controlling_process/2

controlling_process(Zlibsock::zlib_socket(), Pid::pid()) -> ok | {error, atom()}

disable_zlib/1

disable_zlib(Zlibsock::zlib_socket()) -> {atom(), inet:socket()}

enable_zlib/2

enable_zlib(SockMod::atom(), Socket::inet:socket()) -> {ok, zlib_socket()} | {error, any()}

get_sockmod/1

get_sockmod(Zlibsock::zlib_socket()) -> atom()

handle_call/3

handle_call(X1, X2, State) -> any()

handle_cast/2

handle_cast(X1, State) -> any()

handle_info/2

handle_info(X1, Port) -> any()

init/1

init(X1) -> any()

peername/1

peername(Zlibsock::zlib_socket()) -> {ok, {inet:ip_address(), inet:port_number()}} | {error, inet:posix()}

recv/2

recv(Socket::zlib_socket(), Length::number()) -> {ok, binary()} | {error, any()}

recv/3

recv(Zlibsock::zlib_socket(), Length::number(), Timeout::timeout()) -> {ok, binary()} | {error, any()}

recv_data/2

recv_data(Zlibsock::zlib_socket(), Packet::iodata()) -> {ok, binary()} | {error, any()}

send/2

send(Zlibsock::zlib_socket(), Packet::iodata()) -> ok | {error, binary() | inet:posix()}

setopts/2

setopts(Zlibsock::zlib_socket(), Opts::list()) -> ok | {error, inet:posix()}

sockname/1

sockname(Zlibsock::zlib_socket()) -> {ok, {inet:ip_address(), inet:port_number()}} | {error, inet:posix()}

start_link/0

start_link() -> any()

terminate/2

terminate(Reason, State) -> any()


Generated by EDoc