#pragma once #include "session_impl.h" #include namespace NBus { namespace NPrivate { class TRemoteServerConnection: public TRemoteConnection { friend struct TBusSessionImpl; friend class TRemoteServerSession; TObjectCounter ObjectCounter; public: TRemoteServerConnection(TRemoteServerSessionPtr session, ui64 id, TNetAddr addr); void Init(SOCKET socket, TInstant now); inline TRemoteServerSession* GetSession(); void HandleEvent(SOCKET socket, void* cookie) override; bool NeedInterruptRead() override; void MessageSent(TArrayRef messages) override; void ReaderProcessMessageUnknownVersion(TArrayRef dataRef) override; }; } }