Changeset 10699 for trunk/FACT++
- Timestamp:
- 05/13/11 12:51:04 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/chatserv.cc
r10630 r10699 3 3 #include <boost/bind.hpp> 4 4 5 #include "Dim.h" 6 #include "FACT.h" 5 7 #include "EventImp.h" 6 8 #include "WindowLog.h" … … 44 46 "\n" 45 47 "Usage: chatserv [OPTIONS]\n" 46 " or: chatserv [OPTIONS]\n" 48 " or: chatserv [OPTIONS]\n"; 47 49 cout << endl; 48 50 } … … 65 67 ChatServer(ostream &lout) : StateMachineDim(lout, "CHAT") 66 68 { 67 Add Configuration("MSG", "C")69 AddEvent("MSG", "C") 68 70 (boost::bind(&ChatServer::HandleMsg, this, _1)) 69 71 ("|msg[string]:message to be distributed"); … … 113 115 } 114 116 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")); 118 118 119 119 WindowLog log;
Note:
See TracChangeset
for help on using the changeset viewer.