aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/messagebus/handler.cpp
blob: eec3f3191d180b61a81a7bb4079c577a7c6b5deb (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(); 
}