Home
last modified time | relevance | path

Searched refs:addrPtr (Results 1 – 2 of 2) sorted by relevance

/thrift-3.4.0/lib/cpp/src/thrift/transport/
DTSocket.cpp849 struct sockaddr* addrPtr; in getPeerHost() local
856 addrPtr = getCachedAddress(&addrLen); in getPeerHost()
858 if (addrPtr == nullptr) { in getPeerHost()
863 addrPtr = (sockaddr*)&addr; in getPeerHost()
865 const_cast<TSocket&>(*this).setCachedAddress(addrPtr, addrLen); in getPeerHost()
871 getnameinfo((sockaddr*)addrPtr, in getPeerHost()
887 struct sockaddr* addrPtr; in getPeerAddress() local
894 addrPtr = getCachedAddress(&addrLen); in getPeerAddress()
896 if (addrPtr == nullptr) { in getPeerAddress()
901 addrPtr = (sockaddr*)&addr; in getPeerAddress()
[all …]
/thrift-3.4.0/lib/swift/Sources/
DTSocketTransport.swift167 let addrPtr = withUnsafePointer(to: &addr){ UnsafePointer<sockaddr>(OpaquePointer($0)) } variable
169 let connected = connect(sock, addrPtr, UInt32(MemoryLayout<sockaddr_in>.size))