IPC changes and SocketManager changes all build!

This commit is contained in:
Adam Ierymenko
2014-03-19 13:56:48 -07:00
parent acf7d70d24
commit abc82d6a52
15 changed files with 288 additions and 341 deletions

View File

@ -53,7 +53,7 @@ namespace ZeroTier {
NodeConfig::NodeConfig(const RuntimeEnvironment *renv,const char *authToken) :
_r(renv),
_ipcListener(ZT_IPC_ENDPOINT,&_CBcommandHandler,this),
_ipcListener((std::string(ZT_IPC_ENDPOINT_BASE) + renv->identity.address().toString()).c_str(),&_CBcommandHandler,this),
_authToken(authToken)
{
{
@ -177,8 +177,8 @@ public:
void NodeConfig::_doCommand(IpcConnection *ipcc,const char *commandLine)
{
if (!commandLine)
return; // sanity check
if ((!commandLine)||(!commandLine[0]))
return;
std::vector<std::string> r;
std::vector<std::string> cmd(Utils::split(commandLine,"\r\n \t","\\","'"));