aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/messagebus/handler.cpp
blob: 1cef09d63dfa7497801a9408be467049efbe7b7b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#include "handler.h"
 
#include "remote_server_connection.h" 
#include "ybus.h"

using namespace NBus;
using namespace NBus::NPrivate;

void IBusErrorHandler::OnError(TAutoPtr<TBusMessage> pMessage, EMessageStatus status) {
    Y_UNUSED(pMessage);
    Y_UNUSED(status);
}
void IBusServerHandler::OnSent(TAutoPtr<TBusMessage> pMessage) {
    Y_UNUSED(pMessage);
}
void IBusClientHandler::OnMessageSent(TBusMessage* pMessage) {
    Y_UNUSED(pMessage);
}
void IBusClientHandler::OnMessageSentOneWay(TAutoPtr<TBusMessage> pMessage) {
    Y_UNUSED(pMessage);
}

void IBusClientHandler::OnClientConnectionEvent(const TClientConnectionEvent&) {
}

void TOnMessageContext::ForgetRequest() {
    Session->ForgetRequest(Ident);
}

TNetAddr TOnMessageContext::GetPeerAddrNetAddr() const {
    return Ident.GetNetAddr();
}

bool TOnMessageContext::IsConnectionAlive() const {
    return !!Ident.Connection && Ident.Connection->IsAlive();
}