Moved Poll to net namespace.

This commit is contained in:
Jari Sundell
2025-11-19 19:05:16 +01:00
committed by GitHub
parent b825906034
commit 30cec98799
5 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -7,13 +7,13 @@
namespace input {
void
InputEvent::insert(torrent::Poll* p) {
InputEvent::insert(torrent::net::Poll* p) {
p->open(this);
p->insert_read(this);
}
void
InputEvent::remove(torrent::Poll* p) {
InputEvent::remove(torrent::net::Poll* p) {
p->remove_read(this);
p->close(this);
}
+3 -3
View File
@@ -4,7 +4,7 @@
#include <functional>
#include <torrent/event.h>
#include <torrent/poll.h>
#include <torrent/net/poll.h>
namespace input {
@@ -14,8 +14,8 @@ public:
InputEvent(int fd) { m_fileDesc = fd; }
void insert(torrent::Poll* p);
void remove(torrent::Poll* p);
void insert(torrent::net::Poll* p);
void remove(torrent::net::Poll* p);
void event_read();
void event_write();
+1 -1
View File
@@ -3,10 +3,10 @@
#include <cassert>
#include <sys/un.h>
#include <torrent/connection_manager.h>
#include <torrent/poll.h>
#include <torrent/torrent.h>
#include <torrent/exceptions.h>
#include <torrent/net/fd.h>
#include <torrent/net/poll.h>
#include <torrent/net/socket_address.h>
#include "control.h"
+1 -1
View File
@@ -8,8 +8,8 @@
#include <sys/types.h>
#include <sys/socket.h>
#include <torrent/exceptions.h>
#include <torrent/poll.h>
#include <torrent/torrent.h>
#include <torrent/net/poll.h>
#include <torrent/utils/log.h>
#include <torrent/utils/thread.h>
+1 -1
View File
@@ -6,7 +6,7 @@
#include "test/helpers/mock_function.h"
#include "torrent/exceptions.h"
#include "torrent/poll.h"
#include "torrent/net/poll.h"
const int test_thread::test_flag_pre_stop;
const int test_thread::test_flag_long_timeout;