diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-03-27 18:22:53 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-03-27 18:22:53 -0700 |
commit | 181369964f501c3c702971b30c82b9e84eed58db (patch) | |
tree | da47762818c122211839638acc9c2b7c42914fa5 /node/Node.hpp | |
parent | 73c1d43f2f1e0c22b21636e09be8a3e6f512faf0 (diff) | |
download | infinitytier-181369964f501c3c702971b30c82b9e84eed58db.tar.gz infinitytier-181369964f501c3c702971b30c82b9e84eed58db.zip |
Make TCP optional, rename port constant.
Diffstat (limited to 'node/Node.hpp')
-rw-r--r-- | node/Node.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/node/Node.hpp b/node/Node.hpp index bf154dc2..ceb4e745 100644 --- a/node/Node.hpp +++ b/node/Node.hpp @@ -153,11 +153,11 @@ public: * The node is not executed until run() is called. * * @param hp Home directory path or NULL for system-wide default for this platform (default: NULL) - * @param udpPort UDP port or 0 for default (9993) (default: 0) - * @param tcpPort TCP port or 0 for default (9993) (default: 0) + * @param udpPort UDP port or 0 to disable (default: 9993) + * @param tcpPort TCP port or 0 to disable (default: 0) * @param resetIdentity If true, delete identity before starting and regenerate (default: false) */ - Node(const char *hp = (const char *)0,unsigned int udpPort = 0,unsigned int tcpPort = 0,bool resetIdentity = false) + Node(const char *hp = (const char *)0,unsigned int udpPort = 9993,unsigned int tcpPort = 0,bool resetIdentity = false) throw(); ~Node(); |