Loading src/event/iocp.cpp +6 −6 Changes for src/event/iocp.cpp: 6 added lines, 6 removed lines. Original line number Diff line number Diff line Loading @@ -162,24 +162,24 @@ namespace netplus { friend class EventWorker; }; void eventapi::RequestEvent(std::shared_ptr <con> curcon, const int tid, ULONG_PTR args) { void eventapi::RequestEvent(std::shared_ptr <con> &curcon, const int tid, ULONG_PTR args) { //dummy }; void eventapi::ResponseEvent(std::shared_ptr <con> curcon, const int tid, ULONG_PTR args) { void eventapi::ResponseEvent(std::shared_ptr <con> &curcon, const int tid, ULONG_PTR args) { //dummy }; void eventapi::ConnectEvent(std::shared_ptr <con> curcon, const int tid, ULONG_PTR args) { void eventapi::ConnectEvent(std::shared_ptr <con> &curcon, const int tid, ULONG_PTR args) { //dummy }; void eventapi::DisconnectEvent(std::shared_ptr <con> curcon, const int tid, ULONG_PTR args) { void eventapi::DisconnectEvent(std::shared_ptr <con> &curcon, const int tid, ULONG_PTR args) { //dummy }; void eventapi::CreateConnetion(std::shared_ptr <con> curcon) { curcon = std::make_shared<con>(std::shared_ptr<eventapi>(this)); void eventapi::CreateConnetion(std::shared_ptr<con> &curcon) { curcon = std::make_shared<con>(shared_from_this()); }; event::event(std::shared_ptr<socket> serversocket, int timeout) { Loading src/eventapi.h +6 −6 Changes for src/eventapi.h: 6 added lines, 6 removed lines. Original line number Diff line number Diff line Loading @@ -38,16 +38,16 @@ namespace netplus { class EventWorker; class pollapi; class eventapi { class eventapi : public std::enable_shared_from_this<eventapi> { public: /*HTTP API Events*/ virtual void RequestEvent(std::shared_ptr <con> curcon,const int tid,ULONG_PTR args); virtual void ResponseEvent(std::shared_ptr <con> curcon,const int tid, ULONG_PTR args); virtual void ConnectEvent(std::shared_ptr <con> curcon,const int tid, ULONG_PTR args); virtual void DisconnectEvent(std::shared_ptr <con> curcon,const int tid, ULONG_PTR args); virtual void RequestEvent(std::shared_ptr <con> &curcon,const int tid,ULONG_PTR args); virtual void ResponseEvent(std::shared_ptr <con> &curcon,const int tid, ULONG_PTR args); virtual void ConnectEvent(std::shared_ptr <con> &curcon,const int tid, ULONG_PTR args); virtual void DisconnectEvent(std::shared_ptr <con> &curcon,const int tid, ULONG_PTR args); /*memory allocation*/ virtual void CreateConnetion(std::shared_ptr<con> curon)=0; virtual void CreateConnetion(std::shared_ptr<con> &curon)=0; }; class event : public eventapi{ Loading Loading
src/event/iocp.cpp +6 −6 Changes for src/event/iocp.cpp: 6 added lines, 6 removed lines. Original line number Diff line number Diff line Loading @@ -162,24 +162,24 @@ namespace netplus { friend class EventWorker; }; void eventapi::RequestEvent(std::shared_ptr <con> curcon, const int tid, ULONG_PTR args) { void eventapi::RequestEvent(std::shared_ptr <con> &curcon, const int tid, ULONG_PTR args) { //dummy }; void eventapi::ResponseEvent(std::shared_ptr <con> curcon, const int tid, ULONG_PTR args) { void eventapi::ResponseEvent(std::shared_ptr <con> &curcon, const int tid, ULONG_PTR args) { //dummy }; void eventapi::ConnectEvent(std::shared_ptr <con> curcon, const int tid, ULONG_PTR args) { void eventapi::ConnectEvent(std::shared_ptr <con> &curcon, const int tid, ULONG_PTR args) { //dummy }; void eventapi::DisconnectEvent(std::shared_ptr <con> curcon, const int tid, ULONG_PTR args) { void eventapi::DisconnectEvent(std::shared_ptr <con> &curcon, const int tid, ULONG_PTR args) { //dummy }; void eventapi::CreateConnetion(std::shared_ptr <con> curcon) { curcon = std::make_shared<con>(std::shared_ptr<eventapi>(this)); void eventapi::CreateConnetion(std::shared_ptr<con> &curcon) { curcon = std::make_shared<con>(shared_from_this()); }; event::event(std::shared_ptr<socket> serversocket, int timeout) { Loading
src/eventapi.h +6 −6 Changes for src/eventapi.h: 6 added lines, 6 removed lines. Original line number Diff line number Diff line Loading @@ -38,16 +38,16 @@ namespace netplus { class EventWorker; class pollapi; class eventapi { class eventapi : public std::enable_shared_from_this<eventapi> { public: /*HTTP API Events*/ virtual void RequestEvent(std::shared_ptr <con> curcon,const int tid,ULONG_PTR args); virtual void ResponseEvent(std::shared_ptr <con> curcon,const int tid, ULONG_PTR args); virtual void ConnectEvent(std::shared_ptr <con> curcon,const int tid, ULONG_PTR args); virtual void DisconnectEvent(std::shared_ptr <con> curcon,const int tid, ULONG_PTR args); virtual void RequestEvent(std::shared_ptr <con> &curcon,const int tid,ULONG_PTR args); virtual void ResponseEvent(std::shared_ptr <con> &curcon,const int tid, ULONG_PTR args); virtual void ConnectEvent(std::shared_ptr <con> &curcon,const int tid, ULONG_PTR args); virtual void DisconnectEvent(std::shared_ptr <con> &curcon,const int tid, ULONG_PTR args); /*memory allocation*/ virtual void CreateConnetion(std::shared_ptr<con> curon)=0; virtual void CreateConnetion(std::shared_ptr<con> &curon)=0; }; class event : public eventapi{ Loading