package lpd
-
lpd.socket
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
val queues : (string * queue_actions) list
Give the names of the allowed queues and the actions to be taken for each of them. Do not forget that it is your responsability to remove the jobs files on the disk (we have no way to know for how long you need them). None of the queue names can contain a space (i.e. ' ', '\t', '\012' or '\013').
val authorized_host : Unix.sockaddr -> bool
authorized_host addr
determines whether a connection from addr
is accepted.
How to log connections and protocol. It is the responsability of this function to add a final "\n"
and to flush the necessary channel. print_endline
is an easy choice. It is customary to add a timestamp to the messages being logged. Lpd.string_of_current_time
can help you with that.