Always use struct
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user