PEER_GRAPH_EVENT_DATA structure (p2p.h)

The PEER_GRAPH_EVENT_DATA structure contains data associated with a peer event.

Syntax

typedef struct peer_graph_event_data_tag {
  PEER_GRAPH_EVENT_TYPE eventType;
  union {
    PEER_GRAPH_STATUS_FLAGS           dwStatus;
    PEER_EVENT_INCOMING_DATA          incomingData;
    PEER_EVENT_RECORD_CHANGE_DATA     recordChangeData;
    PEER_EVENT_CONNECTION_CHANGE_DATA connectionChangeData;
    PEER_EVENT_NODE_CHANGE_DATA       nodeChangeData;
    PEER_EVENT_SYNCHRONIZED_DATA      synchronizedData;
  };
} PEER_GRAPH_EVENT_DATA, *PPEER_GRAPH_EVENT_DATA;

Members

eventType

The type of peer event this data corresponds to. Must be one of the PEER_GRAPH_EVENT_TYPE values. The members that remain are given values based on the peer event type that has occurred. Not all members contain data.

dwStatus

This member is given a value if the PEER_GRAPH_EVENT_STATUS_CHANGE peer event is triggered. A change has been made in relation to a node's connection to the graph.

incomingData

This member is given a value if the PEER_GRAPH_INCOMING_DATA peer event is triggered. A node has received data from a neighbor or a direct connection.

recordChangeData

This member given a value if the PEER_GRAPH_EVENT_RECORD_CHANGE peer event is triggered. A record type the application asked for notifications of has changed.

connectionChangeData

This member is given a value if the PEER_GRAPH_EVENT_NEIGHBOR_CONNECTION or PEER_GRAPH_EVENT_DIRECT_CONNECTION peer event is triggered. An aspect of a neighbor or direct connection state has changed.

nodeChangeData

This member is given a value if the PEER_GRAPH_EVENT_NODE_CHANGED peer event is triggered. A node's presence state has changed.

synchronizedData

This member is given a value if the PEER_GRAPH_EVENT_SYNCHRONIZED peer event is triggered. A record type has completed its synchronization.

Requirements

Requirement Value
Minimum supported client Windows XP with SP2 [desktop apps only],Windows XP with SP1 with the Advanced Networking Pack forWindows XP
Minimum supported server None supported
Header p2p.h

See also

PEER_EVENT_CONNECTION_CHANGE_DATA

PEER_EVENT_INCOMING_DATA

PEER_EVENT_NODE_CHANGE_DATA

PEER_EVENT_RECORD_CHANGE_DATA

PEER_EVENT_SYNCHRONIZED_DATA

PEER_GRAPH_EVENT_TYPE

PEER_GRAPH_STATUS_FLAGS

PeerGraphGetEventData