Browse Source

Bug: Add HTTPConnection->size() and HTTPServer->size()

Need this for proper garbage collection.
v0.7.4-release
Ryan 16 years ago
parent
commit
25d14bd001
  1. 4
      src/http.h

4
src/http.h

@ -13,6 +13,8 @@ public:
static v8::Persistent<v8::FunctionTemplate> client_constructor_template; static v8::Persistent<v8::FunctionTemplate> client_constructor_template;
static v8::Persistent<v8::FunctionTemplate> server_constructor_template; static v8::Persistent<v8::FunctionTemplate> server_constructor_template;
virtual size_t size (void) { return sizeof(HTTPConnection); };
protected: protected:
static v8::Handle<v8::Value> NewClient (const v8::Arguments& args); static v8::Handle<v8::Value> NewClient (const v8::Arguments& args);
@ -41,6 +43,8 @@ public:
static void Initialize (v8::Handle<v8::Object> target); static void Initialize (v8::Handle<v8::Object> target);
static v8::Persistent<v8::FunctionTemplate> constructor_template; static v8::Persistent<v8::FunctionTemplate> constructor_template;
virtual size_t size (void) { return sizeof(HTTPServer); };
protected: protected:
static v8::Handle<v8::Value> New (const v8::Arguments& args); static v8::Handle<v8::Value> New (const v8::Arguments& args);

Loading…
Cancel
Save