Commit 3197a0dd authored by jan.koester's avatar jan.koester
Browse files

test

parent 3535e40f
Loading
Loading
Loading
Loading
+1 −1
Changes for src/event/iocp.cpp: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -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>());
	};

+5 −2
Changes for src/eventapi.h: 5 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -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;
@@ -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();