Commit 1cf5a0c1 authored by jan.koester's avatar jan.koester
Browse files

test

parent 6fbf26ee
Loading
Loading
Loading
Loading
+9 −11
Changes for src/event/kqueue.cpp: 9 added lines, 11 removed lines.
Original line number Diff line number Diff line
@@ -690,17 +690,15 @@ namespace netplus {
        event::Running = false;
    }

} // namespace netplus

    // ============================================================
// event class implementation (outside namespace)
    // event class implementation
    // ============================================================
netplus::event::event(std::vector<netplus::socket*> serversockets, int timeout)
    event::event(std::vector<socket*> serversockets, int timeout)
        : _ServerSockets(serversockets), _Timeout(timeout)
    {
        if (_ServerSockets.empty()) {
        netplus::NetException e;
        e[netplus::NetException::Critical] << "server socket empty!";
            NetException e;
            e[NetException::Critical] << "server socket empty!";
            throw e;
        }

@@ -717,14 +715,14 @@ netplus::event::event(std::vector<netplus::socket*> serversockets, int timeout)
        threads = sysconf(_SC_NPROCESSORS_ONLN);
    }

netplus::event::event(const netplus::event& src) : _ServerSockets(src._ServerSockets), _Timeout(src._Timeout) {}
netplus::event::~event() {}
    event::event(const event& src) : _ServerSockets(src._ServerSockets), _Timeout(src._Timeout) {}
    event::~event() {}

void netplus::event::runEventloop(ULONG_PTR args) {
    signal(SIGINT, netplus::signalHandler);
    void event::runEventloop(ULONG_PTR args) {
        signal(SIGINT, signalHandler);
        signal(SIGPIPE, SIG_IGN);

    netplus::EventWorkerArgs eargs;
        EventWorkerArgs eargs;

    MAINWORKERLOOP:
        for(auto ss : _ServerSockets) {