Changeset 10699


Ignore:
Timestamp:
05/13/11 12:51:04 (14 years ago)
Author:
tbretz
Message:
Adapted to some latest changes.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/chatserv.cc

    r10630 r10699  
    33#include <boost/bind.hpp>
    44
     5#include "Dim.h"
     6#include "FACT.h"
    57#include "EventImp.h"
    68#include "WindowLog.h"
     
    4446        "\n"
    4547        "Usage: chatserv [OPTIONS]\n"
    46         "  or:  chatserv [OPTIONS]\n"
     48        "  or:  chatserv [OPTIONS]\n";
    4749    cout << endl;
    4850}
     
    6567    ChatServer(ostream &lout) : StateMachineDim(lout, "CHAT")
    6668    {
    67         AddConfiguration("MSG", "C")
     69        AddEvent("MSG", "C")
    6870            (boost::bind(&ChatServer::HandleMsg, this, _1))
    6971            ("|msg[string]:message to be distributed");
     
    113115    }
    114116
    115     // To allow overwriting of DIM_DNS_NODE set 0 to 1
    116     setenv("DIM_DNS_NODE", conf.Get<string>("dns").c_str(), 1);
    117 
     117    Dim::Setup(conf.Get<string>("dns"));
    118118
    119119    WindowLog log;
Note: See TracChangeset for help on using the changeset viewer.