Always use struct

This commit is contained in:
2025-08-23 06:10:55 -04:00
parent b86cf3680e
commit 4af5e0423e
14 changed files with 56 additions and 41 deletions

View File

@@ -1,7 +1,5 @@
#pragma once
#include "arena_allocator.hpp"
#include "connection_handler.hpp"
#include <cassert>
#include <cstring>
#include <deque>
@@ -10,6 +8,9 @@
#include <sys/uio.h>
#include <unistd.h>
#include "arena_allocator.hpp"
#include "connection_handler.hpp"
#ifndef __has_feature
#define __has_feature(x) 0
#endif
@@ -39,7 +40,7 @@
* private.
*/
// Forward declaration
class Server;
struct Server;
struct Connection {
// No public constructor or factory method - only Server can create
@@ -305,7 +306,7 @@ struct Connection {
private:
// Server is a friend and can access all networking internals
friend class Server;
friend struct Server;
/**
* @brief Private constructor - only accessible by Server.