1 \documentclass{article}
2 \usepackage[usenames]{xcolor}
4 \title{Servers and ports}
10 \begin{tabular}{|l|l|l|}
12 \textbf{Port offset} & \textbf{Component} & \textbf{Purpose} \\
14 0 & \texttt{EncodeServer} & Listen for frame encoding requests \\
16 1 & \texttt{EncodeServer} & Listen for \texttt{DCPOMATIC\_HELLO} from masters \\
18 2 & \texttt{EncodeServerFinder} & Listen for replies to \texttt{DCPOMATIC\_HELLO} from servers \\
20 3 & Batch converter & Listen for job requests \\
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.
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.
34 Batch Converter listens on $\texttt{server\_port\_base} + 2$ for jobs.