Searched refs:sock_addr (Results 1 – 5 of 5) sorted by relevance
/external/chromium_org/net/base/ |
D | ip_endpoint.cc | 87 bool IPEndPoint::FromSockAddr(const struct sockaddr* sock_addr, in FromSockAddr() argument 89 DCHECK(sock_addr); in FromSockAddr() 94 if (!GetIPAddressFromSockAddr(sock_addr, sock_addr_len, &address, in FromSockAddr()
|
D | net_util.cc | 535 bool GetIPAddressFromSockAddr(const struct sockaddr* sock_addr, in GetIPAddressFromSockAddr() argument 540 if (sock_addr->sa_family == AF_INET) { in GetIPAddressFromSockAddr() 544 reinterpret_cast<const struct sockaddr_in*>(sock_addr); in GetIPAddressFromSockAddr() 552 if (sock_addr->sa_family == AF_INET6) { in GetIPAddressFromSockAddr() 556 reinterpret_cast<const struct sockaddr_in6*>(sock_addr); in GetIPAddressFromSockAddr() 565 if (sock_addr->sa_family == AF_BTH) { in GetIPAddressFromSockAddr() 569 reinterpret_cast<const SOCKADDR_BTH*>(sock_addr); in GetIPAddressFromSockAddr()
|
D | net_util.h | 131 bool GetIPAddressFromSockAddr(const struct sockaddr* sock_addr,
|
/external/chromium_org/device/bluetooth/ |
D | bluetooth_socket_win.cc | 267 struct sockaddr* sock_addr = reinterpret_cast<struct sockaddr*>(&sa); in DoListen() local 272 if (bind(socket_fd, sock_addr, sock_addr_len) < 0) { in DoListen() 290 if (getsockname(socket_fd, sock_addr, &sock_addr_len)) { in DoListen()
|
/external/lldb/source/Core/ |
D | ConnectionFileDescriptor.cpp | 1504 SocketAddress sock_addr; in GetSocketPort() local 1505 socklen_t sock_addr_len = sock_addr.GetMaxLength (); in GetSocketPort() 1506 if (::getsockname (fd, sock_addr, &sock_addr_len) == 0) in GetSocketPort() 1507 return sock_addr.GetPort (); in GetSocketPort()
|