PEER_GROUP_EVENT_TYPE enumeration (p2p.h)

The PEER_GROUP_EVENT_TYPE enumeration contains the specific peer event types that can occur within a peer group.

Syntax

typedef enum peer_group_event_type_tag {
  PEER_GROUP_EVENT_STATUS_CHANGED = 1,
  PEER_GROUP_EVENT_PROPERTY_CHANGED = 2,
  PEER_GROUP_EVENT_RECORD_CHANGED = 3,
  PEER_GROUP_EVENT_DIRECT_CONNECTION = 4,
  PEER_GROUP_EVENT_NEIGHBOR_CONNECTION = 5,
  PEER_GROUP_EVENT_INCOMING_DATA = 6,
  PEER_GROUP_EVENT_MEMBER_CHANGED = 8,
  PEER_GROUP_EVENT_CONNECTION_FAILED = 10,
  PEER_GROUP_EVENT_AUTHENTICATION_FAILED = 11
} PEER_GROUP_EVENT_TYPE;

Constants

 
PEER_GROUP_EVENT_STATUS_CHANGED
Value: 1
The status of the group has changed. This peer event is fired when one of the flags listed in the PEER_GROUP_STATUS enumeration are set or changed for the group.
PEER_GROUP_EVENT_PROPERTY_CHANGED
Value: 2
A member in the PEER_GROUP_EVENT_DATA to retrieve.
PEER_GROUP_EVENT_RECORD_CHANGED
Value: 3
A group record has changed. Information on this change is provided in the PEER_GROUP_EVENT_DATA.
PEER_GROUP_EVENT_DIRECT_CONNECTION
Value: 4
The status of a direct connection has changed. Information on this change is provided in the PEER_GROUP_EVENT_DATA.
PEER_GROUP_EVENT_NEIGHBOR_CONNECTION
Value: 5
The status of a neighbor connection has changed. Information on this change is provided in the PEER_GROUP_EVENT_DATA.
PEER_GROUP_EVENT_INCOMING_DATA
Value: 6
Incoming direct connection data from a member is detected. Information on this peer event is provided in the PEER_GROUP_EVENT_DATA.
PEER_GROUP_EVENT_MEMBER_CHANGED
Value: 8
The status of a member has changed. Information on this change is provided in the PEER_GROUP_EVENT_DATA.
PEER_GROUP_EVENT_CONNECTION_FAILED
Value: 10
The connection to the peer group has failed. No data is provided when this peer event is raised. This event is also raised if no members are online in a group you are attempting to connect to for the first time.
PEER_GROUP_EVENT_AUTHENTICATION_FAILED
Value: 11

Requirements

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

See also

PEER_GROUP_EVENT_DATA

PEER_GROUP_EVENT_REGISTRATION