Lines Matching full:code
2 // Use of this source code is governed by a BSD-style license that can be
21 /// The <code>UDPSocket</code> class provides UDP socket operations.
23 /// Permissions: Apps permission <code>socket</code> with subrule
24 /// <code>udp-bind</code> is required for <code>Bind()</code>; subrule
25 /// <code>udp-send-to</code> is required for <code>SendTo()</code>.
30 /// Default constructor for creating an is_null() <code>UDPSocket</code>
34 /// A constructor used to create a <code>UDPSocket</code> object.
40 /// A constructor used when you have received a <code>PP_Resource</code> as a
43 /// @param[in] resource A <code>PPB_UDPSocket</code> resource.
46 /// The copy constructor for <code>UDPSocket</code>.
48 /// @param[in] other A reference to another <code>UDPSocket</code>.
54 /// The assignment operator for <code>UDPSocket</code>.
56 /// @param[in] other A reference to another <code>UDPSocket</code>.
58 /// @return A reference to this <code>UDPSocket</code> object.
62 /// <code>PPB_UDPSocket</code> interface.
69 /// @param[in] addr A <code>NetAddress</code> object.
70 /// @param[in] callback A <code>CompletionCallback</code> to be called upon
73 /// @return An int32_t containing an error code from <code>pp_errors.h</code>.
74 /// <code>PP_ERROR_NOACCESS</code> will be returned if the caller doesn't have
75 /// required permissions. <code>PP_ERROR_ADDRESS_IN_USE</code> will be
82 /// @return A <code>NetAddress</code> object. The object will be null
90 /// <code>buffer</code>. Typically you will use a
91 /// <code>CompletionCallbackFactory</code> to scope callbacks to the lifetime
95 /// <code>PPB_UDPSocket</code> resource outlives your class, the browser
98 /// If you want to release the buffer while the <code>RecvFrom()</code> call
99 /// is still pending, you should call <code>Close()</code> to ensure that the
103 /// must be at least as large as <code>num_bytes</code>.
105 /// @param[in] callback A <code>CompletionCallbackWithOutput</code> to be
109 /// been received; otherwise, an error code from <code>pp_errors.h</code>.
119 /// @param[in] addr A <code>NetAddress</code> object holding the destination
121 /// @param[in] callback A <code>CompletionCallback</code> to be called upon
125 /// been sent; otherwise, an error code from <code>pp_errors.h</code>.
126 /// <code>PP_ERROR_NOACCESS</code> will be returned if the caller doesn't have
134 /// callbacks will still run, reporting <code>PP_ERROR_ABORTED</code> if
136 /// paramters passed into previous <code>RecvFrom()</code> calls will be
137 /// accessed. It is not valid to call <code>Bind()</code> again.
144 /// Please see the <code>PP_UDPSocket_Option</code> description for option
149 /// @param[in] callback A <code>CompletionCallback</code> to be called upon
152 /// @return An int32_t containing an error code from <code>pp_errors.h</code>.