Loading src/event/kqueue.cpp +11 −9 Changes for src/event/kqueue.cpp: 11 added lines, 9 removed lines. Original line number Diff line number Diff line Loading @@ -690,15 +690,17 @@ namespace netplus { event::Running = false; } } // namespace netplus // ============================================================ // event class implementation // event class implementation (outside namespace) // ============================================================ event::event(std::vector<socket*> serversockets, int timeout) netplus::event::event(std::vector<netplus::socket*> serversockets, int timeout) : _ServerSockets(serversockets), _Timeout(timeout) { if (_ServerSockets.empty()) { NetException e; e[NetException::Critical] << "server socket empty!"; netplus::NetException e; e[netplus::NetException::Critical] << "server socket empty!"; throw e; } Loading @@ -715,14 +717,14 @@ namespace netplus { threads = sysconf(_SC_NPROCESSORS_ONLN); } event::event(const event& src) : _ServerSockets(src._ServerSockets), _Timeout(src._Timeout) {} event::~event() {} netplus::event::event(const netplus::event& src) : _ServerSockets(src._ServerSockets), _Timeout(src._Timeout) {} netplus::event::~event() {} void event::runEventloop(ULONG_PTR args) { signal(SIGINT, signalHandler); void netplus::event::runEventloop(ULONG_PTR args) { signal(SIGINT, netplus::signalHandler); signal(SIGPIPE, SIG_IGN); EventWorkerArgs eargs; netplus::EventWorkerArgs eargs; MAINWORKERLOOP: for(auto ss : _ServerSockets) { Loading Loading
src/event/kqueue.cpp +11 −9 Changes for src/event/kqueue.cpp: 11 added lines, 9 removed lines. Original line number Diff line number Diff line Loading @@ -690,15 +690,17 @@ namespace netplus { event::Running = false; } } // namespace netplus // ============================================================ // event class implementation // event class implementation (outside namespace) // ============================================================ event::event(std::vector<socket*> serversockets, int timeout) netplus::event::event(std::vector<netplus::socket*> serversockets, int timeout) : _ServerSockets(serversockets), _Timeout(timeout) { if (_ServerSockets.empty()) { NetException e; e[NetException::Critical] << "server socket empty!"; netplus::NetException e; e[netplus::NetException::Critical] << "server socket empty!"; throw e; } Loading @@ -715,14 +717,14 @@ namespace netplus { threads = sysconf(_SC_NPROCESSORS_ONLN); } event::event(const event& src) : _ServerSockets(src._ServerSockets), _Timeout(src._Timeout) {} event::~event() {} netplus::event::event(const netplus::event& src) : _ServerSockets(src._ServerSockets), _Timeout(src._Timeout) {} netplus::event::~event() {} void event::runEventloop(ULONG_PTR args) { signal(SIGINT, signalHandler); void netplus::event::runEventloop(ULONG_PTR args) { signal(SIGINT, netplus::signalHandler); signal(SIGPIPE, SIG_IGN); EventWorkerArgs eargs; netplus::EventWorkerArgs eargs; MAINWORKERLOOP: for(auto ss : _ServerSockets) { Loading