Method ServerAddress for TBaseServerRequestData
#include <util/system/defaults.h>
#include <util/string/cast.h>
#include <util/string/cgiparam.h>
+#include <util/network/address.h>
#include <util/network/socket.h>
#include <util/generic/hash.h>
#include <util/system/yassert.h>
@@ -30,6 +31,10 @@ public:
return Host;
}
+ NAddr::IRemoteAddrPtr ServerAddress() const {
+ return NAddr::GetSockAddr(Socket);
+ }
+
const TString& ServerPort() const {
return Port;
}
