aboutsummaryrefslogtreecommitdiffstats
path: root/examples
AgeCommit message (Collapse)Author
2021-09-01Update docs and modernize examplesJan Uhlig
* Use the map form for transport options everywhere * Remove mentions of the list form for transport options * Use a state enter call instead of gen_statem:enter_loop/4 and proc_lib:start_link/3 in the tcp_reverse example * Take care of different EOLs in the tcp_reverse example * Mention state enter calls, the next_event action, and {continue, ...} in the docs for how to use gen_statem and gen_server
2020-02-21Increase the timeout in the examples to 60sLoïc Hoguin
2020-02-10Initial release upgrade test suiteLoïc Hoguin
2019-08-08Update examples to use new transport options formatjuhlig
2019-05-09Remove Socket argument from ranch_protocol:start_linkLoïc Hoguin
2018-07-02Introduce Transport:handshake/1,2j.uhlig
This commit deprecates Transport:accept_ack/1 in favor of a new forward-compatible function. Transport:handshake/1,2 will use ssl:handshake/2,3 from Ranch 2.0 onward.
2018-05-07Replace gen_server with gen_statem in examplesj.uhlig
2017-05-31Deprecated ranch:start_listener/6 and child_spec/6Loïc Hoguin
The NumAcceptors argument has been moved to transport option num_acceptor, which defaults to 10. The functions now take one less argument. The old functions are still here, though deprecated.
2017-01-31Depend on Ranch master in examples1.3.1Michael Klishin
Otherwise they are pinned to 1.2.1. Per discussion with @essen.
2016-11-24Don't include observer in example releaseLoïc Hoguin
2016-11-24Update copyright yearLoïc Hoguin
2016-11-15Remove examples .app.src filesLoïc Hoguin
2016-11-15Properly handle Ctrl+D in examplesLoïc Hoguin
2016-11-15Remove bad advice for gen_server protocolsLoïc Hoguin
Also improves the good example a little by using spawn_link instead of start_link.
2015-03-06Fix examples READMELoïc Hoguin
2014-08-01Update examples Makefile1.0.0Loïc Hoguin
2013-12-07Examples must follow masterLoïc Hoguin
2013-12-07Fix small issues and style of the examplesLoïc Hoguin
2013-12-05Update tcp_echo example to use erlang.mkjosh rotenberg
2013-12-04Add example using gen_serverjosh rotenberg
2013-04-01Remove ranch_listener and replace ListenerPid by RefLoïc Hoguin
We just don't need this process anymore. Less, simpler code! API changes: * Protocols start_link first argument is now Ref instead of ListenerPid * ranch:accept_ack/1 argument is now Ref instead of ListenerPid * ranch_listener:remove_connection/1 becomes ranch:remove_connection/1 and its argument is now Ref instead of ListenerPid Ref is the name of the listener given as first argument to start_listener/6.
2012-08-07Add a TCP Echo protocol exampleLoïc Hoguin