summaryrefslogtreecommitdiffstats
path: root/ppapi/api
diff options
context:
space:
mode:
authoryzshen@chromium.org <yzshen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-21 23:37:12 +0000
committeryzshen@chromium.org <yzshen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-21 23:37:12 +0000
commit669b2839b2a307ab08bcbc217efdb8a9f146c7c1 (patch)
tree601f882f71731c441eecb5f8b97f6bd0b6e8e78b /ppapi/api
parent6681478ec237fa2b66b122a98f8630cefab22abc (diff)
downloadchromium_src-669b2839b2a307ab08bcbc217efdb8a9f146c7c1.zip
chromium_src-669b2839b2a307ab08bcbc217efdb8a9f146c7c1.tar.gz
chromium_src-669b2839b2a307ab08bcbc217efdb8a9f146c7c1.tar.bz2
GetBoundAddress will return the address that Bind actually bound to. If there has not been a successful call to Bind, this method will return an error.
BUG=no bug TEST=udp tests Review URL: https://chromiumcodereview.appspot.com/9212047 Patch from Mike Tilburg <mtilburg@adobe.com>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122910 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/api')
-rw-r--r--ppapi/api/private/ppb_udp_socket_private.idl11
1 files changed, 10 insertions, 1 deletions
diff --git a/ppapi/api/private/ppb_udp_socket_private.idl b/ppapi/api/private/ppb_udp_socket_private.idl
index 4babbb4..083c33d 100644
--- a/ppapi/api/private/ppb_udp_socket_private.idl
+++ b/ppapi/api/private/ppb_udp_socket_private.idl
@@ -8,7 +8,8 @@
*/
label Chrome {
- M17 = 0.2
+ M17 = 0.2,
+ M19 = 0.3
};
interface PPB_UDPSocket_Private {
@@ -27,6 +28,14 @@ interface PPB_UDPSocket_Private {
[in] PP_NetAddress_Private addr,
[in] PP_CompletionCallback callback);
+ /* Returns the address that the socket has bound to. A successful
+ * call to Bind must be called first. Returns PP_FALSE if Bind
+ * fails, or if Close has been called.
+ */
+ [version=0.3]
+ PP_Bool GetBoundAddress([in] PP_Resource udp_socket,
+ [out] PP_NetAddress_Private addr);
+
/* Performs a non-blocking recvfrom call on socket.
* Bind must be called first. |callback| is invoked when recvfrom
* reads data. You must call GetRecvFromAddress to recover the