2025-02-04 16:09:27 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "abstract_tcp_connect.hpp"
|
|
|
|
#include "reactor.hpp"
|
|
|
|
|
|
|
|
|
|
|
|
namespace tinyrpc {
|
|
|
|
class TcpServer;
|
2025-02-05 20:50:31 +08:00
|
|
|
class ServerTcpConnection : public AbstractTcpConnection {
|
2025-02-04 16:09:27 +08:00
|
|
|
|
|
|
|
public:
|
|
|
|
ServerTcpConnection(int fd, Reactor& reactor, TcpServer& ser);
|
|
|
|
~ServerTcpConnection();
|
|
|
|
|
|
|
|
private:
|
|
|
|
void process() override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
TcpServer& m_server;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|