#include <Wt/WApplication>
#include <Wt/WContainerWidget>
#include <Wt/WEnvironment>
#include <Wt/WPushButton>
#include <Wt/WServer>
#include <Wt/WText>
#include <Wt/WTimer>
#include "SimpleChatServer.h"
#include "PopupChatWidget.h"
Go to the source code of this file.
◆ createApplication()
WApplication* createApplication |
( |
const WEnvironment & |
env, |
|
|
SimpleChatServer & |
server |
|
) |
| |
◆ createWidget()
WApplication* createWidget |
( |
const WEnvironment & |
env, |
|
|
SimpleChatServer & |
server |
|
) |
| |
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 150 of file simpleChat.C.
152 Wt::WServer server(argc, argv, WTHTTP_CONFIGURATION);
159 server.addEntryPoint(Wt::Application,
161 boost::ref(chatServer)));
162 server.addEntryPoint(Wt::WidgetSet,
164 boost::ref(chatServer)),
"/chat.js");
166 if (server.start()) {
167 int sig = Wt::WServer::waitForShutdown();
168 std::cerr <<
"Shutting down: (signal = " << sig <<
")" << std::endl;