diff options
author | Simon Rettberg | 2015-12-14 15:42:29 +0100 |
---|---|---|
committer | Simon Rettberg | 2015-12-14 15:42:29 +0100 |
commit | dfbd2a69fe8d1e9850fadcad0550c4471fe7a823 (patch) | |
tree | 85b3568bce62ade660623ab94d05026102f09aad /src/server/globals.h | |
parent | [SERVER] Free memory on exit to get new valgrind high score (diff) | |
download | dnbd3-dfbd2a69fe8d1e9850fadcad0550c4471fe7a823.tar.gz dnbd3-dfbd2a69fe8d1e9850fadcad0550c4471fe7a823.tar.xz dnbd3-dfbd2a69fe8d1e9850fadcad0550c4471fe7a823.zip |
[SERVER] Make listen port configurable
Diffstat (limited to 'src/server/globals.h')
-rw-r--r-- | src/server/globals.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/server/globals.h b/src/server/globals.h index 837fc2a..575f3ab 100644 --- a/src/server/globals.h +++ b/src/server/globals.h @@ -91,7 +91,7 @@ typedef struct /** * Image struct. An image path could be something like - * /mnt/images/rz/zfs/Windows7 ZfS.vmdk.1 + * /mnt/images/rz/zfs/Windows7 ZfS.vmdk.r1 * and the lower_name would then be * rz/zfs/windows7 zfs.vmdk */ @@ -175,7 +175,7 @@ extern bool _proxyPrivateOnly; extern int _uplinkTimeout; /** - * Read timeout when waiting for or sending data fron/to client + * Read timeout when waiting for or sending data from/to client */ extern int _clientTimeout; @@ -186,6 +186,11 @@ extern int _clientTimeout; extern bool _backgroundReplication; /** + * Port to listen on (default: #define PORT (5003)) + */ +extern int _listenPort; + +/** * Load the server configuration. */ void globals_loadConfig(); |