Channel functionality will be added in the alpha

This commit is contained in:
Nicolás Ortega Froysa
2017-09-20 15:14:28 +02:00
parent d706702a4e
commit 0337991c0b
3 changed files with 21 additions and 6 deletions

View File

@ -24,9 +24,13 @@
#include <string>
#include <fstream>
#define DEFAULT_PORT 1335
static dht::DhtRunner node;
void NeoComm_init(const unsigned short port) {
void NeoComm_init(unsigned short port) {
if(port == 0)
port = DEFAULT_PORT;
node.run(port, dht::crypto::generateIdentity(), true);
}