Editar

Compartilhar via


PartyEndpointMessageReceivedStateChange

Information specific to the EndpointMessageReceived type of state change.

Syntax

struct PartyEndpointMessageReceivedStateChange : PartyStateChange {  
    PartyNetwork* network;  
    PartyEndpoint* senderEndpoint;  
    uint32_t receiverEndpointCount;  
    PartyLocalEndpointArray receiverEndpoints;  
    PartyMessageReceivedOptions options;  
    uint32_t messageSize;  
    const void* messageBuffer;  
}  

Members

network   PartyNetwork*

The network containing the endpoint on which the message was received.

senderEndpoint   PartyEndpoint*

The endpoint which sent the message.

receiverEndpointCount   uint32_t

The number of local endpoints to which the message was sent. This value will always be greater than zero. If the sender specified an empty target endpoints array in the PartyLocalEndpoint::SendMessage() call that resulted in this state change, receiverEndpointCount and receiverEndpoints will contain all local endpoints.

receiverEndpoints   PartyLocalEndpointArray
array of size receiverEndpointCount

The local endpoints to which the message was sent. This array will never be empty. If the sender specified an empty target endpoints array in the PartyLocalEndpoint::SendMessage() call that resulted in this state change, receiverEndpointCount and receiverEndpoints will contain all local endpoints.

options   PartyMessageReceivedOptions

The options used to send the message.

messageSize   uint32_t

The size of the message in bytes.

messageBuffer   const void*
buffer of size messageSize bytes

The message buffer.

Requirements

Header: Party.h

See also

Party members
PartyLocalEndpoint::SendMessage