MCPcopy Create free account
hub / github.com/apache/thrift / getCachedAddress

Method getCachedAddress

lib/cpp/src/thrift/transport/TSocket.cpp:956–969  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

954}
955
956sockaddr* TSocket::getCachedAddress(socklen_t* len) const {
957 switch (cachedPeerAddr_.ipv4.sin_family) {
958 case AF_INET:
959 *len = sizeof(sockaddr_in);
960 return (sockaddr*)&cachedPeerAddr_.ipv4;
961
962 case AF_INET6:
963 *len = sizeof(sockaddr_in6);
964 return (sockaddr*)&cachedPeerAddr_.ipv6;
965
966 default:
967 return nullptr;
968 }
969}
970
971bool TSocket::useLowMinRto_ = false;
972void TSocket::setUseLowMinRto(bool useLowMinRto) {

Callers 1

processContextMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected