Searched defs:sockaddr (Results 1 - 13 of 13) sorted by relevance

/external/chromium_org/net/base/
H A Dip_endpoint_unittest.cc80 // Convert to a sockaddr.
114 struct sockaddr* sockaddr = reinterpret_cast<struct sockaddr*>(&addr); local
115 EXPECT_FALSE(ip_endpoint.FromSockAddr(sockaddr, sizeof(addr) - 1));
H A Dnet_util.cc524 addr(reinterpret_cast<struct sockaddr*>(&addr_storage)) {
534 // Extracts the address and port portions of a sockaddr.
535 bool GetIPAddressFromSockAddr(const struct sockaddr* sock_addr,
610 std::string NetAddressToString(const struct sockaddr* sa,
622 std::string NetAddressToStringWithPort(const struct sockaddr* sa,
766 const struct sockaddr* addr = interface->ifa_addr;
955 const uint16* GetPortFieldFromSockaddr(const struct sockaddr* address,
959 const struct sockaddr_in* sockaddr = local
961 return &sockaddr->sin_port;
964 const struct sockaddr_in6* sockaddr local
[all...]
/external/lldb/include/lldb/Host/
H A DSocketAddress.h36 SocketAddress (const struct sockaddr &s);
53 operator=(const struct sockaddr &s);
136 // Direct access to all of the sockaddr structures
138 struct sockaddr &
139 sockaddr () function in class:lldb_private::SocketAddress
144 const struct sockaddr &
145 sockaddr () const function in class:lldb_private::SocketAddress
191 // of this class to be used in calls that take one of the sockaddr
196 operator struct sockaddr * ()
201 operator const struct sockaddr * () cons
[all...]
/external/clang/test/Analysis/
H A Dcasts.c7 // 'struct sockaddr *'.
14 struct sockaddr { sa_family_t sa_family; }; struct
21 struct sockaddr* sockaddr = (struct sockaddr*)&storage; local
23 getsockname(sock, sockaddr, &addrlen);
24 switch (sockaddr->sa_family) { // no-warning
/external/qemu/android/
H A Dsync-utils.c54 syncsocket_connect(int fd, SockAddress* sockaddr, int timeout) argument
63 connect_status = socket_connect(fd, sockaddr);
H A Dconsole.c613 SockAddress sockaddr; local
625 sock_address_init_inet( &sockaddr, SOCK_ADDRESS_INET_LOOPBACK, control_port );
627 ret = socket_bind(fd, &sockaddr );
/external/chromium_org/native_client_sdk/src/libraries/nacl_io/
H A Dhost_resolver.cc38 struct sockaddr* addr,
62 ai->ai_addr = reinterpret_cast<sockaddr*>(in);
70 ai->ai_addr = reinterpret_cast<sockaddr*>(in);
224 int HostResolver::getnameinfo(const struct sockaddr *sa,
291 CreateAddrInfo(hints, (sockaddr*)&addr_in, node, result, &end);
300 CreateAddrInfo(hints, (sockaddr*)&addr_in6, node, result, &end);
311 CreateAddrInfo(hints, (sockaddr*)&addr_in6, NULL, result, &end);
316 CreateAddrInfo(hints, (sockaddr*)&addr_in, NULL, result, &end);
387 // Convert address to sockaddr struct.
393 struct sockaddr* sockadd local
[all...]
/external/conscrypt/src/main/java/org/conscrypt/
H A DOpenSSLSocketImplWrapper.java43 public void connect(SocketAddress sockaddr, int timeout) argument
49 public void connect(SocketAddress sockaddr) throws IOException { argument
54 public void bind(SocketAddress sockaddr) throws IOException { argument
/external/qemu/slirp-android/
H A Dudp.c447 SockAddress sockaddr; local
473 if (socket_get_address(so->s, &sockaddr) < 0)
477 cu_head->s_port = htons( sock_address_get_port(&sockaddr));
478 cu_head->so_addr = htonl( sock_address_get_ip(&sockaddr));
H A Dtcp_subr.c417 SockAddress sockaddr; local
530 sock_address_to_string(&sockaddr), try_proxy));
532 sock_address_init_inet( &sockaddr, sock_ip, sock_port );
535 if (!proxy_manager_add(&sockaddr, SOCKET_STREAM,
545 socket_connect(s, &sockaddr);
/external/qemu/
H A Dgdbstub.c2242 struct sockaddr_in sockaddr; local
2247 len = sizeof(sockaddr);
2248 fd = accept(gdbserver_fd, (struct sockaddr *)&sockaddr, &len);
2274 struct sockaddr_in sockaddr; local
2287 sockaddr.sin_family = AF_INET;
2288 sockaddr.sin_port = htons(port);
2289 sockaddr.sin_addr.s_addr = 0;
2290 ret = bind(fd, (struct sockaddr *)&sockaddr, sizeo
[all...]
/external/chromium_org/native_client_sdk/src/libraries/third_party/newlib-extras/sys/
H A Dsocket.h43 # define __SOCKADDR_ARG struct sockaddr *__restrict
44 # define __CONST_SOCKADDR_ARG __const struct sockaddr *
191 struct sockaddr { struct
399 * 4.3 compat sockaddr, move to compat file later
438 int accept(int, struct sockaddr *, socklen_t *);
439 int bind(int, const struct sockaddr *, socklen_t);
440 int connect(int, const struct sockaddr *, socklen_t);
441 int getpeername(int, struct sockaddr *, socklen_t *);
442 int getsockname(int, struct sockaddr *, socklen_t *);
446 ssize_t recvfrom(int, void *, size_t, int, struct sockaddr *, socklen_
[all...]
/external/chromium_org/net/third_party/nss/ssl/
H A Dsslsock.c2022 ssl_Accept(PRFileDesc *fd, PRNetAddr *sockaddr, PRIntervalTime timeout) argument
2047 newfd = osfd->methods->accept(osfd, sockaddr, timeout);
2093 ssl_Connect(PRFileDesc *fd, const PRNetAddr *sockaddr, PRIntervalTime timeout) argument
2109 rv = (PRStatus)(*ss->ops->connect)(ss, sockaddr);

Completed in 480 milliseconds