diff options
author | Anton Samokhvalov <pg83@yandex.ru> | 2022-02-10 16:45:15 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:15 +0300 |
commit | 72cb13b4aff9bc9cf22e49251bc8fd143f82538f (patch) | |
tree | da2c34829458c7d4e74bdfbdf85dff449e9e7fb8 /library/cpp/messagebus/remote_client_connection.h | |
parent | 778e51ba091dc39e7b7fcab2b9cf4dbedfb6f2b5 (diff) | |
download | ydb-72cb13b4aff9bc9cf22e49251bc8fd143f82538f.tar.gz |
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/messagebus/remote_client_connection.h')
-rw-r--r-- | library/cpp/messagebus/remote_client_connection.h | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/library/cpp/messagebus/remote_client_connection.h b/library/cpp/messagebus/remote_client_connection.h index fe80b7d2f9..95061f1f36 100644 --- a/library/cpp/messagebus/remote_client_connection.h +++ b/library/cpp/messagebus/remote_client_connection.h @@ -7,59 +7,59 @@ #include <util/generic/object_counter.h> -namespace NBus { - namespace NPrivate { - class TRemoteClientConnection: public TRemoteConnection, public TBusClientConnection { - friend class TRemoteConnection; - friend struct TBusSessionImpl; - friend class TRemoteClientSession; +namespace NBus { + namespace NPrivate { + class TRemoteClientConnection: public TRemoteConnection, public TBusClientConnection { + friend class TRemoteConnection; + friend struct TBusSessionImpl; + friend class TRemoteClientSession; - private: - TObjectCounter<TRemoteClientConnection> ObjectCounter; + private: + TObjectCounter<TRemoteClientConnection> ObjectCounter; - TSyncAckMessages AckMessages; + TSyncAckMessages AckMessages; - TLocalTasks TimeToTimeoutMessages; + TLocalTasks TimeToTimeoutMessages; - IBusClientHandler* const ClientHandler; + IBusClientHandler* const ClientHandler; - public: - TRemoteClientConnection(TRemoteClientSessionPtr session, ui64 id, TNetAddr addr); + public: + TRemoteClientConnection(TRemoteClientSessionPtr session, ui64 id, TNetAddr addr); - inline TRemoteClientSession* GetSession(); + inline TRemoteClientSession* GetSession(); - SOCKET CreateSocket(const TNetAddr& addr); + SOCKET CreateSocket(const TNetAddr& addr); - void TryConnect() override; + void TryConnect() override; - void HandleEvent(SOCKET socket, void* cookie) override; + void HandleEvent(SOCKET socket, void* cookie) override; - TBusMessage* PopAck(TBusKey id); + TBusMessage* PopAck(TBusKey id); - void WriterFillStatus() override; + void WriterFillStatus() override; - void ClearOutgoingQueue(TMessagesPtrs& result, bool reconnect) override; + void ClearOutgoingQueue(TMessagesPtrs& result, bool reconnect) override; - void BeforeTryWrite() override; + void BeforeTryWrite() override; - void ProcessReplyQueue(); + void ProcessReplyQueue(); - void MessageSent(TArrayRef<TBusMessagePtrAndHeader> messages) override; + void MessageSent(TArrayRef<TBusMessagePtrAndHeader> messages) override; - void TimeoutMessages(); + void TimeoutMessages(); - void ScheduleTimeoutMessages(); + void ScheduleTimeoutMessages(); - void ReaderProcessMessageUnknownVersion(TArrayRef<const char> dataRef) override; + void ReaderProcessMessageUnknownVersion(TArrayRef<const char> dataRef) override; - EMessageStatus SendMessage(TBusMessage* pMes, bool wait) override; + EMessageStatus SendMessage(TBusMessage* pMes, bool wait) override; - EMessageStatus SendMessageOneWay(TBusMessage* pMes, bool wait) override; + EMessageStatus SendMessageOneWay(TBusMessage* pMes, bool wait) override; - EMessageStatus SendMessageImpl(TBusMessage*, bool wait, bool oneWay); + EMessageStatus SendMessageImpl(TBusMessage*, bool wait, bool oneWay); - void OpenConnection() override; - }; + void OpenConnection() override; + }; - } -} + } +} |