Pepper_56_C_interfaces
Pepper_56_C_interfaces
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
PPB_UDPSocketExtension_Samsung_0_1 Struct Reference

#include <ppb_udp_socket_extension_samsung.h>

Public Attributes

int32_t(* GetOption )(PP_Resource udp_socket, PP_UDPSocket_Option name, struct PP_Var *value, struct PP_CompletionCallback callback)
 
int32_t(* JoinMulticast )(PP_Resource udp_socket, const struct PP_MulticastMembership *membership, struct PP_CompletionCallback callback)
 
int32_t(* LeaveMulticast )(PP_Resource udp_socket, const struct PP_MulticastMembership *membership, struct PP_CompletionCallback callback)
 

Detailed Description

The PPB_UDPSocketExtension_Samsung interface provides additional sockets functionality for PPB_UDPSocket. To use this interface, one have to create standard UDPSocket object.

Permissions: This interface does not require additional permissions in relation to standard sockets.

This API is deprecated since Samsung Pepper 47. Please use PPB_UDPSocket API instead.

Member Data Documentation

int32_t(* PPB_UDPSocketExtension_Samsung_0_1::GetOption)(PP_Resource udp_socket, PP_UDPSocket_Option name, struct PP_Var *value, struct PP_CompletionCallback callback)

Get a socket option on the associated socket. Please see the PP_UDPSocket_Option description for option names, value types and allowed values. Socket need to be already bound and method will fail with PP_ERROR_FAILED if it's not.

Parameters
[in]udp_socketA PP_Resource corresponding to a UDP socket.
[in]nameThe option to get.
[out]Valueof requested option.
[in]callbackA PP_CompletionCallback to be called upon completion.
Returns
An int32_t containing an error code from pp_errors.h.
int32_t(* PPB_UDPSocketExtension_Samsung_0_1::JoinMulticast)(PP_Resource udp_socket, const struct PP_MulticastMembership *membership, struct PP_CompletionCallback callback)

Join a multicast group. Use optional source_addr to allow receiving data only from a specified source. This option can be used multiple times to allow receiving data from more than one source. Socket need to be already bound and method will fail with PP_ERROR_FAILED if it's not.

Parameters
[in]udp_socketA PP_Resource corresponding to a UDP socket.
[in]membershipA PP_MulticastMembership multicast group and optional source IP.
[in]callbackA PP_CompletionCallback to be called upon completion.
Returns
An int32_t containing an error code from pp_errors.h.
int32_t(* PPB_UDPSocketExtension_Samsung_0_1::LeaveMulticast)(PP_Resource udp_socket, const struct PP_MulticastMembership *membership, struct PP_CompletionCallback callback)

Leave a multicast group. Use optional member source_addr to stop receiving data from multicast group that come from a given source. If the application has subscribed to multiple sources within the same group, data from the remaining sources will still be delivered. Socket need to be already bound and method will fail with PP_ERROR_FAILED if it's not.

Parameters
[in]udp_socketA PP_Resource corresponding to a UDP socket.
[in]membershipA PP_MulticastMembership multicast group and optional source IP.
[in]callbackA PP_CompletionCallback to be called upon completion.
Returns
An int32_t containing an error code from pp_errors.h.

The documentation for this struct was generated from the following file: