Searched refs:addrlen (Results 1 – 3 of 3) sorted by relevance
/device/generic/goldfish/fvpbase/tools/ |
D | bind_to_localhost.cpp | 20 static int (*real_bind)(int sockfd, const sockaddr* addr, socklen_t addrlen) = 23 extern "C" int bind(int sockfd, const sockaddr* addr, socklen_t addrlen) { in bind() argument 24 if (addr->sa_family != AF_INET) return real_bind(sockfd, addr, addrlen); in bind() 26 if (sin->sin_addr.s_addr != 0) return real_bind(sockfd, addr, addrlen); in bind() 29 return real_bind(sockfd, (sockaddr*)&new_sin, addrlen); in bind()
|
/device/google/cuttlefish/common/libs/fs/ |
D | shared_fd.cpp | 211 socklen_t addrlen, in ConnectWithTimeout() argument 224 addr, addrlen); // This will return immediately because of O_NONBLOCK in ConnectWithTimeout() 383 socklen_t* addrlen) { in Accept() argument 385 std::shared_ptr<FileInstance>(listener.Accept(addr, addrlen))); in Accept() 539 socklen_t addrlen; in SocketLocalClient() local 540 MakeAddress(name.c_str(), abstract, &addr, &addrlen); in SocketLocalClient() 547 if (rval->ConnectWithTimeout(casted_addr, addrlen, &timeout) == -1) { in SocketLocalClient() 660 socklen_t addrlen; in SocketLocalServer() local 661 MakeAddress(name.c_str(), abstract, &addr, &addrlen); in SocketLocalServer() 672 if (rval->Bind(reinterpret_cast<sockaddr*>(&addr), addrlen) == -1) { in SocketLocalServer() [all …]
|
D | shared_fd.h | 140 socklen_t* addrlen); 298 int Bind(const struct sockaddr* addr, socklen_t addrlen); 299 int Connect(const struct sockaddr* addr, socklen_t addrlen); 300 int ConnectWithTimeout(const struct sockaddr* addr, socklen_t addrlen, 323 int GetSockName(struct sockaddr* addr, socklen_t* addrlen); 404 FileInstance* Accept(struct sockaddr* addr, socklen_t* addrlen) const;
|