Searched refs:addrPtr (Results 1 – 2 of 2) sorted by relevance
849 struct sockaddr* addrPtr; in getPeerHost() local856 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() local894 addrPtr = getCachedAddress(&addrLen); in getPeerAddress()896 if (addrPtr == nullptr) { in getPeerAddress()901 addrPtr = (sockaddr*)&addr; in getPeerAddress()[all …]
167 let addrPtr = withUnsafePointer(to: &addr){ UnsafePointer<sockaddr>(OpaquePointer($0)) } variable169 let connected = connect(sock, addrPtr, UInt32(MemoryLayout<sockaddr_in>.size))