summaryrefslogtreecommitdiff
path: root/src/lib/types.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2017-04-27 15:07:21 +0100
committerCarl Hetherington <cth@carlh.net>2017-04-27 15:07:21 +0100
commitf80e2f7b370c3a6dfa8a78c9665a8eaf43a05f03 (patch)
treea71e6e42c93fec31b12226a404bc87a50cf51422 /src/lib/types.h
parent89a4ad5f9d430e29758e5cca82a66ff3b6f11ea7 (diff)
Move ports around to allow master/server to coexist (#962).
Diffstat (limited to 'src/lib/types.h')
-rw-r--r--src/lib/types.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/types.h b/src/lib/types.h
index 041db1786..0702c8734 100644
--- a/src/lib/types.h
+++ b/src/lib/types.h
@@ -70,6 +70,15 @@ namespace xmlpp {
*/
#define VIDEO_FRAME_RATE_EPSILON (1e-4)
+/** Port on which EncodeServer listens for frame encoding requests */
+#define ENCODE_FRAME_PORT (Config::instance()->server_port_base())
+/** Port on which EncodeServer listens for DCPOMATIC_HELLO from masters */
+#define HELLO_PORT (Config::instance()->server_port_base()+1)
+/** Port on which EncodeServerFinder listens for replies to DCPOMATIC_HELLO from servers */
+#define SERVER_PRESENCE_PORT (Config::instance()->server_port_base()+2)
+/** Port on which batch converter listens for job requests */
+#define BATCH_JOB_PORT (Config::instance()->server_port_base()+3)
+
typedef std::vector<boost::shared_ptr<Content> > ContentList;
typedef std::vector<boost::shared_ptr<FFmpegContent> > FFmpegContentList;