Chromium Code Reviews| Index: ppapi/api/private/ppb_net_address_private.idl |
| diff --git a/ppapi/api/private/ppb_net_address_private.idl b/ppapi/api/private/ppb_net_address_private.idl |
| index 01a370b41206261ed9e55bc53220a6f485ee0771..25d3f41427118e6b4a26692be66fa19cfb96d98d 100644 |
| --- a/ppapi/api/private/ppb_net_address_private.idl |
| +++ b/ppapi/api/private/ppb_net_address_private.idl |
| @@ -68,7 +68,7 @@ interface PPB_NetAddress_Private { |
| */ |
| PP_Bool ReplacePort([in] PP_NetAddress_Private src_addr, |
| [in] uint16_t port, |
| - [out] PP_NetAddress_Private dest_addr); |
| + [out] PP_NetAddress_Private addr_out); |
| /** |
| * Gets the "any" address (for IPv4 or IPv6); for use with UDP Bind. |
| @@ -99,4 +99,22 @@ interface PPB_NetAddress_Private { |
| PP_Bool GetAddress([in] PP_NetAddress_Private addr, |
| [out] mem_t address, |
| [in] uint16_t address_size); |
| + |
| + /** |
| + * Creates NetAddress with the specified IPv4 address and port |
| + * number. |
| + */ |
| + [version=1.0] |
|
viettrungluu
2012/03/16 22:19:15
Should be version 1.1.
|
| + void CreateFromIPv4Address([in] uint8_t[4] ip, |
| + [in] uint16_t port, |
| + [out] PP_NetAddress_Private addr_out); |
| + /** |
| + * Creates NetAddress with the specified IPv6 address, scope_id and |
| + * port number. |
| + */ |
| + [version=1.0] |
| + void CreateFromIPv6Address([in] uint8_t[16] ip, |
| + [in] uint32_t scope_id, |
| + [in] uint16_t port, |
| + [out] PP_NetAddress_Private addr_out); |
| }; |