#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()
◆ createWidget()
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 150 of file simpleChat.C.
151{
152 Wt::WServer server(argc, argv, WTHTTP_CONFIGURATION);
154
155
156
157
158
161 boost::ref(chatServer)));
164 boost::ref(chatServer)), "/chat.js");
165
166 if (server.start()) {
168 std::cerr << "Shutting down: (signal = " << sig << ")" << std::endl;
169 server.stop();
170 }
171}
static WT_API int waitForShutdown(const char *restartWatchFile=0)
WApplication * createApplication(const WEnvironment &env, SimpleChatServer &server)
WApplication * createWidget(const WEnvironment &env, SimpleChatServer &server)