Loading src/event/iocp.cpp +1 −1 Changes for src/event/iocp.cpp: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -151,7 +151,7 @@ namespace netplus { //dummy }; void eventapi::CreateConnetion(std::shared_ptr<con> &curcon) { void event::CreateConnetion(std::shared_ptr<con> &curcon) { curcon = std::shared_ptr<con>(new con(shared_from_this()),std::default_delete<con>()); }; Loading src/eventapi.h +5 −2 Changes for src/eventapi.h: 5 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -38,7 +38,7 @@ namespace netplus { class EventWorker; class pollapi; class eventapi : public std::enable_shared_from_this<eventapi> { class eventapi { public: /*HTTP API Events*/ virtual void RequestEvent(std::shared_ptr <con> &curcon,const int tid,ULONG_PTR args)=0; Loading @@ -50,9 +50,12 @@ namespace netplus { virtual void CreateConnetion(std::shared_ptr<con> &curon)=0; }; class event : public eventapi { class event : public eventapi , std::enable_shared_from_this<eventapi>{ public: event(std::shared_ptr<socket>& serversocket, int timeout=-1); void CreateConnetion(std::shared_ptr<con>& curon); void runEventloop(ULONG_PTR args=0); virtual ~event(); Loading Loading
src/event/iocp.cpp +1 −1 Changes for src/event/iocp.cpp: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -151,7 +151,7 @@ namespace netplus { //dummy }; void eventapi::CreateConnetion(std::shared_ptr<con> &curcon) { void event::CreateConnetion(std::shared_ptr<con> &curcon) { curcon = std::shared_ptr<con>(new con(shared_from_this()),std::default_delete<con>()); }; Loading
src/eventapi.h +5 −2 Changes for src/eventapi.h: 5 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -38,7 +38,7 @@ namespace netplus { class EventWorker; class pollapi; class eventapi : public std::enable_shared_from_this<eventapi> { class eventapi { public: /*HTTP API Events*/ virtual void RequestEvent(std::shared_ptr <con> &curcon,const int tid,ULONG_PTR args)=0; Loading @@ -50,9 +50,12 @@ namespace netplus { virtual void CreateConnetion(std::shared_ptr<con> &curon)=0; }; class event : public eventapi { class event : public eventapi , std::enable_shared_from_this<eventapi>{ public: event(std::shared_ptr<socket>& serversocket, int timeout=-1); void CreateConnetion(std::shared_ptr<con>& curon); void runEventloop(ULONG_PTR args=0); virtual ~event(); Loading