-
Notifications
You must be signed in to change notification settings - Fork 4
Features
-
In server and client 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 process calls
handle_call
function of your callback module for call requests, callshandle_cast
function for cast requests, callshandle_event
function for incoming events, callsterminate
function for termination, callstimeout
function for timeouts, callssrtimeout
function for socket-receive-timeouts, etc. Also you don't need to handle system messages. -
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). -
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.