Pascal Bach created THRIFT-2672:
-----------------------------------
Summary: Provide origin of call via TTransport
Key: THRIFT-2672
URL: https://issues.apache.org/jira/browse/THRIFT-2672
Project: Thrift
Issue Type: Improvement
Components: C++ - Library
Affects Versions: 1.0
Reporter: Pascal Bach
In some situations it is helpful to be able to get the origin of a thrift call.
Some transport like TSocket provide methods for this ({{getPeerAddress}}).
However to access this a cast is required and the transport type hase to be
known.
This patch adds a new method called {{getOrigin}} to TTransport. The function
returns a string representing the origin of the call.
The implementation of {{getOrigin}} is transport specific.
E.g. the TSocket transport returns the IP and port of the remote socket.
Transports that don't know about the origin just return _Unknown_.
--
This message was sent by Atlassian JIRA
(v6.2#6252)