Home
last modified time | relevance | path

Searched refs:ipv4_addr (Results 1 – 25 of 25) sorted by relevance

/external/chromium_org/remoting/client/plugin/
Dpepper_util.cc23 in_addr ipv4_addr = address.ipaddr().ipv4_address(); in SocketAddressToPpNetAddressWithPort() local
26 memcpy(&ip_addr.addr, &ipv4_addr, sizeof(ip_addr.addr)); in SocketAddressToPpNetAddressWithPort()
58 PP_NetAddress_IPv4 ipv4_addr; in PpNetAddressToSocketAddress() local
59 CHECK(pp_net_address.DescribeAsIPv4Address(&ipv4_addr)); in PpNetAddressToSocketAddress()
61 bit_cast<in_addr>(ipv4_addr.addr))); in PpNetAddressToSocketAddress()
62 address->SetPort(base::NetToHost16(ipv4_addr.port)); in PpNetAddressToSocketAddress()
/external/chromium_org/ppapi/tests/
Dtest_utils.cc156 PP_NetAddress_IPv4 ipv4_addr; in ResolveHost() local
157 ipv4_addr.port = ConvertToNetEndian16( in ResolveHost()
159 if (!pp::NetAddressPrivate::GetAddress(addr_private, ipv4_addr.addr, in ResolveHost()
160 sizeof(ipv4_addr.addr))) { in ResolveHost()
163 *addr = pp::NetAddress(instance_handle, ipv4_addr); in ResolveHost()
189 PP_NetAddress_IPv4 ipv4_addr; in ReplacePort() local
190 if (!input_addr.DescribeAsIPv4Address(&ipv4_addr)) in ReplacePort()
192 ipv4_addr.port = ConvertToNetEndian16(port); in ReplacePort()
193 *output_addr = pp::NetAddress(pp::InstanceHandle(instance), ipv4_addr); in ReplacePort()
213 PP_NetAddress_IPv4 ipv4_addr; in GetPort() local
[all …]
Dtest_net_address.cc61 PP_NetAddress_IPv4 ipv4_addr = { ConvertToNetEndian16(80), { 127, 0, 0, 1 } }; in TestIPv4Address() local
62 NetAddress net_addr(instance_, ipv4_addr); in TestIPv4Address()
69 ASSERT_TRUE(EqualIPv4Address(ipv4_addr, out_ipv4_addr)); in TestIPv4Address()
Dtest_udp_socket.cc28 PP_NetAddress_IPv4 ipv4_addr; in ReplacePort() local
29 if (!addr.DescribeAsIPv4Address(&ipv4_addr)) in ReplacePort()
31 ipv4_addr.port = ConvertToNetEndian16(port); in ReplacePort()
32 return pp::NetAddress(instance, ipv4_addr); in ReplacePort()
Dtest_net_address_private.cc267 const uint8_t ipv4_addr[4] = { 127, 0, 0, 1 }; in TestGetAddress() local
268 PP_NetAddress_Private localhost_80 = MakeIPv4NetAddress(ipv4_addr, 80); in TestGetAddress()
273 ASSERT_EQ(memcmp(addr_storage, &ipv4_addr, 4), 0); in TestGetAddress()
/external/chromium_org/ppapi/proxy/
Dnet_address_resource.cc19 const PP_NetAddress_IPv4& ipv4_addr) in NetAddressResource() argument
21 NetAddressPrivateImpl::CreateNetAddressPrivateFromIPv4Address(ipv4_addr, in NetAddressResource()
63 PP_NetAddress_IPv4* ipv4_addr) { in DescribeAsIPv4Address() argument
66 address_, ipv4_addr)); in DescribeAsIPv4Address()
Dnet_address_resource.h23 const PP_NetAddress_IPv4& ipv4_addr);
40 PP_NetAddress_IPv4* ipv4_addr) OVERRIDE;
Dresource_creation_proxy.cc291 const PP_NetAddress_IPv4* ipv4_addr) { in CreateNetAddressFromIPv4Address() argument
293 *ipv4_addr))->GetReference(); in CreateNetAddressFromIPv4Address()
Dresource_creation_proxy.h129 const PP_NetAddress_IPv4* ipv4_addr) OVERRIDE;
/external/chromium_org/ppapi/cpp/
Dnet_address.cc29 const PP_NetAddress_IPv4& ipv4_addr) { in NetAddress() argument
33 instance.pp_instance(), &ipv4_addr)); in NetAddress()
79 bool NetAddress::DescribeAsIPv4Address(PP_NetAddress_IPv4* ipv4_addr) const { in DescribeAsIPv4Address()
83 pp_resource(), ipv4_addr)); in DescribeAsIPv4Address()
Dnet_address.h37 const PP_NetAddress_IPv4& ipv4_addr);
97 bool DescribeAsIPv4Address(PP_NetAddress_IPv4* ipv4_addr) const;
/external/chromium_org/ppapi/thunk/
Dppb_net_address_thunk.cc21 const struct PP_NetAddress_IPv4* ipv4_addr) { in CreateFromIPv4Address() argument
27 ipv4_addr); in CreateFromIPv4Address()
64 struct PP_NetAddress_IPv4* ipv4_addr) { in DescribeAsIPv4Address() argument
69 return enter.object()->DescribeAsIPv4Address(ipv4_addr); in DescribeAsIPv4Address()
Dppb_net_address_api.h22 virtual PP_Bool DescribeAsIPv4Address(PP_NetAddress_IPv4* ipv4_addr) = 0;
Dresource_creation_api.h141 const PP_NetAddress_IPv4* ipv4_addr) = 0;
/external/chromium_org/ppapi/shared_impl/private/
Dnet_address_private_impl.cc522 const PP_NetAddress_IPv4& ipv4_addr, in CreateNetAddressPrivateFromIPv4Address() argument
524 CreateFromIPv4Address(ipv4_addr.addr, ConvertFromNetEndian16(ipv4_addr.port), in CreateNetAddressPrivateFromIPv4Address()
549 PP_NetAddress_IPv4* ipv4_addr) { in DescribeNetAddressPrivateAsIPv4Address() argument
550 if (!ipv4_addr) in DescribeNetAddressPrivateAsIPv4Address()
557 ipv4_addr->port = ConvertToNetEndian16(net_addr->port); in DescribeNetAddressPrivateAsIPv4Address()
559 COMPILE_ASSERT(sizeof(ipv4_addr->addr) == kIPv4AddressSize, in DescribeNetAddressPrivateAsIPv4Address()
561 memcpy(ipv4_addr->addr, net_addr->address, kIPv4AddressSize); in DescribeNetAddressPrivateAsIPv4Address()
Dnet_address_private_impl.h45 const PP_NetAddress_IPv4& ipv4_addr,
54 PP_NetAddress_IPv4* ipv4_addr);
/external/chromium_org/ppapi/c/
Dppb_net_address.h112 const struct PP_NetAddress_IPv4* ipv4_addr);
177 struct PP_NetAddress_IPv4* ipv4_addr);
/external/chromium_org/ppapi/api/
Dppb_net_address.idl74 * @param[in] ipv4_addr An IPv4 address.
77 * <code>ipv4_addr</code> or 0 on failure.
80 [in] PP_NetAddress_IPv4 ipv4_addr);
143 * @param[out] ipv4_addr A <code>PP_NetAddress_IPv4</code> structure to store
150 [out] PP_NetAddress_IPv4 ipv4_addr);
/external/chromium_org/native_client_sdk/src/examples/api/socket/
Decho_server.cc53 PP_NetAddress_IPv4 ipv4_addr = { Htons(port), { 0 } }; in Start() local
54 pp::NetAddress addr(instance_, ipv4_addr); in Start()
Dsocket.cc200 PP_NetAddress_IPv4 ipv4_addr = { 0, { 0 } }; in OnResolveCompletion() local
201 udp_socket_.Bind(pp::NetAddress(this, ipv4_addr), callback); in OnResolveCompletion()
/external/chromium_org/native_client_sdk/src/tests/nacl_io_socket_test/
Decho_server.cc54 PP_NetAddress_IPv4 ipv4_addr = { Htons(port), { 0 } }; in Start() local
55 pp::NetAddress addr(instance_, ipv4_addr); in Start()
/external/chromium_org/native_client_sdk/src/tests/nacl_io_test/
Dsocket_test.cc383 struct in_addr ipv4_addr = generate_ipv4_addr(255,255,255,255); in TEST() local
389 EXPECT_TRUE(NULL == inet_ntop(AF_INET, &ipv4_addr, in TEST()
/external/chromium_org/content/renderer/pepper/
Dresource_creation_impl.h93 const PP_NetAddress_IPv4* ipv4_addr) OVERRIDE;
Dresource_creation_impl.cc190 const PP_NetAddress_IPv4* ipv4_addr) { in CreateNetAddressFromIPv4Address() argument
/external/chromium_org/ppapi/native_client/src/untrusted/pnacl_irt_shim/
Dpnacl_shim.c984 …etAddress_CreateFromIPv4Address(PP_Instance instance, const struct PP_NetAddress_IPv4* ipv4_addr) { in Pnacl_M29_PPB_NetAddress_CreateFromIPv4Address() argument
986 return iface->CreateFromIPv4Address(instance, ipv4_addr); in Pnacl_M29_PPB_NetAddress_CreateFromIPv4Address()
1009 …_M29_PPB_NetAddress_DescribeAsIPv4Address(PP_Resource addr, struct PP_NetAddress_IPv4* ipv4_addr) { in Pnacl_M29_PPB_NetAddress_DescribeAsIPv4Address() argument
1011 return iface->DescribeAsIPv4Address(addr, ipv4_addr); in Pnacl_M29_PPB_NetAddress_DescribeAsIPv4Address()
4281 …(PP_Resource (*)(PP_Instance instance, const struct PP_NetAddress_IPv4* ipv4_addr))&Pnacl_M29_PPB_…
4286 ….DescribeAsIPv4Address = (PP_Bool (*)(PP_Resource addr, struct PP_NetAddress_IPv4* ipv4_addr))&Pna…