Skip to content

Commit 57f41ec

Browse files
author
Koen Deforche
committed
see Changelog
1 parent 0da96b8 commit 57f41ec

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1072
-218
lines changed

Changelog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
08-11-2010:
2+
* WebSession: landed Web Sockets support, must be enabled in the
3+
configuration file
4+
15
05-11-2010:
26
* Wt.js: fix opera script loading indicating failure when loading from
37
cache

src/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ web/XSSUtils.C
215215
web/WebRequest.C
216216
web/WebStream.C
217217
web/WebSession.C
218+
web/WebSocketMessage.C
218219
web/WebRenderer.C
219220
web/WebController.C
220221
web/WtException.C

src/Wt/Dbo/Session_impl.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ void Session::mapClass(const char *tableName)
4343
if (schemaInitialized_)
4444
throw std::logic_error("Cannot map tables after schema was initialized.");
4545

46+
if (classRegistry_.find(&typeid(C)) != classRegistry_.end())
47+
return;
48+
4649
Mapping<C> *mapping = new Mapping<C>();
4750
mapping->tableName = tableName;
4851

src/Wt/Http/ResponseContinuation

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ private:
6767

6868
void stop();
6969
WebResponse *response() { return response_; }
70-
static void callBack(void *callbackData);
7170

7271
friend class Wt::WResource;
7372
friend class Wt::WebSession;

src/Wt/Http/ResponseContinuation.C

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,12 @@ void ResponseContinuation::setData(const boost::any& data)
2121

2222
void ResponseContinuation::doContinue()
2323
{
24-
resource_->doContinue(this);
25-
}
26-
27-
void ResponseContinuation::callBack(void *callbackData)
28-
{
29-
ResponseContinuation *continuation
30-
= static_cast<ResponseContinuation *>(callbackData);
31-
3224
// We are certain that the continuation is still "alive" because it is
3325
// protected by a mutex, and thus a simultaneous change with
3426
// WebResponse::flush() is not possible: ResponseContinuation::stop(),
3527
// called before destruction together with the resource, will thus
3628
// block while we are here.
37-
38-
continuation->doContinue();
29+
resource_->doContinue(this);
3930
}
4031

4132
ResponseContinuation::ResponseContinuation(WResource *resource,

src/Wt/WContainerWidget.C

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -702,8 +702,8 @@ void WContainerWidget::createDomChildren(DomElement& parent, WApplication *app)
702702

703703
/*
704704
* Take the hint: if the container is relative, then we can use an absolute
705-
* layout for its contents, under the assumption that also the width
706-
* is handled using JavaScript (like in WTreeView, WTableView)
705+
* layout for its contents, under the assumption that a .wtResize or
706+
* auto-javascript sets the width too (like in WTreeView, WTableView)
707707
*/
708708
if (positionScheme() == Relative || positionScheme() == Absolute) {
709709
c->setProperty(PropertyStylePosition, "absolute");

src/Wt/WDllDefs.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@
6363
#ifdef _MSC_VER
6464
typedef __int64 int64_t; /* 64 bit signed */
6565
typedef unsigned __int64 uint64_t; /* 64 bit unsigned */
66+
typedef __int32 int32_t; /* 64 bit signed */
67+
typedef unsigned __int32 uint32_t; /* 32 bit unsigned */
6668
#else // _MSC_VER
6769
#include <stdint.h>
6870
#endif // _MSC_VER

src/Wt/WResource.C

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,9 @@ void WResource::handle(WebRequest *webRequest, WebResponse *webResponse,
126126
}
127127
webResponse->flush(WebResponse::ResponseDone);
128128
} else
129-
webResponse->flush(WebResponse::ResponseCallBack,
130-
Http::ResponseContinuation::callBack,
131-
response.continuation_);
129+
webResponse->flush(WebResponse::ResponseFlush,
130+
boost::bind(&Http::ResponseContinuation::doContinue,
131+
response.continuation_));
132132
}
133133

134134
void WResource::suggestFileName(const std::string& name)

src/Wt/WScrollArea.C

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ void WScrollArea::updateDom(DomElement& element, bool all)
8989
{
9090
if (all)
9191
if (isInLayout() && WApplication::instance()->environment().ajax()) {
92-
setPositionScheme(Absolute);
9392
setJavaScriptMember("wtResize",
9493
"function(s, w, h) {"
9594
"s.style.width=w+'px';"

src/fcgi/FCGIStream.C

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,13 @@ namespace {
5151
delete request_;
5252
}
5353

54-
virtual void flush(ResponseState state,
55-
CallbackFunction callback,
56-
void *callbackData) {
54+
virtual void flush(ResponseState state, CallbackFunction callback) {
5755
out_->flush();
5856

59-
if (state == ResponseCallBack) {
60-
setAsyncCallback(boost::bind(callback, callbackData));
57+
if (state == ResponseFlush) {
58+
setAsyncCallback(callback);
6159
} else {
62-
setAsyncCallback(boost::function<void(void)>());
60+
setAsyncCallback(0);
6361
}
6462
emulateAsync(state);
6563
}

0 commit comments

Comments
 (0)