-
Notifications
You must be signed in to change notification settings - Fork 4
Features
-
In server, client and client pool implementation every connection has its own process and Sockerl provides useful and simple API for accessing them and sending data through them or sending Erlang message to them, closing them etc.
-
Every connection process can handle generic calls (requests that have made using
gen_server:call/2-3
orgen:call/3-4
), generic casts (requests that have made usinggen_server:cast/2
), generic events (messages in form of{'$gen_event', Event}
), disconnecting (when other side closes connection), Erlang system messages, etc. -
Acceptors and Connectors have been written as
Special Erlang process
and they are faster thangen_server
,gen_fsm
, etc. -
Blocking and non-blocking sockets are supported with doing a few changes in your code.
-
SSL is supported too (you can define your own
sockerl_transporter
behavior for any protocol like SSL). -
Connects to multiple addresses and has multiple connections to every address in client pools.
-
Clean and human-understandable error outputs.
-
Accepts standard OTP sys debug options for Acceptors and Connections for generating clean debug output.
-
Simple API for controlling crash of connection processes.
All features not listed here.