summaryrefslogtreecommitdiff
path: root/src/kill_proxy.cpp
diff options
context:
space:
mode:
authorhovertank3d <[email protected]>2025-11-13 23:28:40 +0100
committerhovertank3d <[email protected]>2025-11-13 23:36:57 +0100
commit6c1a6c62bb13d09a0beb51ebb5cd5e4a69d9fe5a (patch)
tree3ced0304df9dea9fe6547ee7d27bfa6eb25e4cc9 /src/kill_proxy.cpp
parent9e162e1a3cbf4ea75953bb1f4e2b9440c9456348 (diff)
downloadogurec-6c1a6c62bb13d09a0beb51ebb5cd5e4a69d9fe5a.tar.gz
ogurec-6c1a6c62bb13d09a0beb51ebb5cd5e4a69d9fe5a.zip
tidy up a bit
Diffstat (limited to 'src/kill_proxy.cpp')
-rw-r--r--src/kill_proxy.cpp22
1 files changed, 1 insertions, 21 deletions
diff --git a/src/kill_proxy.cpp b/src/kill_proxy.cpp
index 82723e1..e72848f 100644
--- a/src/kill_proxy.cpp
+++ b/src/kill_proxy.cpp
@@ -1,30 +1,10 @@
-#include <arpa/inet.h>
-#include <bitset>
-#include <concepts>
-#include <cstdint>
-#include <fcntl.h>
-#include <format>
-#include <iostream>
-#include <netdb.h>
-#include <netinet/in.h>
-#include <ostream>
-#include <stdlib.h>
-#include <sys/socket.h>
-#include <sys/time.h>
-#include <sys/types.h>
-#include <sys/uio.h>
-#include <sys/wait.h>
#include <thread>
-#include <unistd.h>
-#include <utility>
#include "net/client.hpp"
#include "net/conn.hpp"
#include "net/server.hpp"
#include "net/types.hpp"
-using net::packet::operator""_ns;
-
template <typename T, T... ints>
void forward_packets(net::conn& dst, net::conn& src, std::integer_sequence<T, ints...> int_seq)
{
@@ -47,7 +27,7 @@ int main(int argc, char* argv[])
auto proxy_conn = proxy.accept();
uint8_t slot;
- server_conn.reg_handler<net::packet::accept>([=, &slot](auto& a) {
+ server_conn.reg_handler<net::packet::accept>([&slot](auto& a) {
slot = a.client_id;
return false;
});