Fill test disk partitions with random noise to expose more bugs.
[dcpomatic.git] / doc / design / servers_and_ports.tex
1 \documentclass{article}
2 \usepackage[usenames]{xcolor}
3 \usepackage{listings}
4 \title{Servers and ports}
5 \author{}
6 \date{}
7 \begin{document}
8 \maketitle
9
10 \begin{tabular}{|l|l|l|}
11   \hline
12   \textbf{Port offset} & \textbf{Component} & \textbf{Purpose} \\
13   \hline
14   0 & \texttt{EncodeServer} & Listen for frame encoding requests \\
15   \hline
16   1 & \texttt{EncodeServer} & Listen for \texttt{DCPOMATIC\_HELLO} from masters \\
17   \hline
18   2 & \texttt{EncodeServerFinder} & Listen for replies to \texttt{DCPOMATIC\_HELLO} from servers \\
19   \hline
20   3 & Batch converter & Listen for job requests \\
21   \hline
22 \end{tabular}
23
24
25 \texttt{EncodeServer} listens on \texttt{server\_port\_base}.
26 Receives an XML \texttt{EncodingRequest} and then the video data.
27 Sends back the encoded data.
28
29 \texttt{EncodeServer} also listens on $\texttt{server\_port\_base} +
30 1$.  A main DCP-o-matic instance broadcasts \texttt{DCPOMATIC\_HELLO}
31 on this port.  When a server receives this it connects to the main
32 DCP-o-matic on $\texttt{server\_port\_base} + 1$ and tells it what it can do.
33
34 Batch Converter listens on $\texttt{server\_port\_base} + 2$ for jobs.
35
36 \end{document}