This module defines the ranch_transport behaviour.
Required callback functions: name/0, secure/0, messages/0, listen/1, accept/2, accept_ack/2, connect/3, connect/4, recv/3, send/2, sendfile/2, sendfile/4, sendfile/5, setopts/2, controlling_process/2, peername/1, sockname/1, shutdown/2, close/1.
sendfile_opts() = [{chunk_size, non_neg_integer()}]
socket() = any()
sendfile/6 |
sendfile(Transport::module(), Socket::socket(), Filename::file:filename_all() | file:fd(), Offset::non_neg_integer(), Bytes::non_neg_integer(), Opts::sendfile_opts()) -> {ok, non_neg_integer()} | {error, atom()}
Generated by EDoc, May 1 2016, 01:44:51.