CHAILink SDK  Version 1.3
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
typedef void(* NH_PIPE_PEERCHANGE)(CPHOBJECT const hPipe, CPUINT32 const dwPipeUserData, CPENDPOINT const *const pPeer, CPBOOLEAN const fNewPeer)

Peer change notification.

Called if a new peer is connected, or if a peer is silent (the pipe does not receive message or internal system message for 2 seconds).

Parameters
[in]hPipeHandle to the notified pipe.
[in]dwPipeUserDataThe user data associated to the pipe handle during its creation.
[in]pPeerPointer to the concerned peer endpoint.
[in]fNewPeerTRUE if this notifies a new peer, FALSE for a lost peer
Warning
It is NOT SAFE to modify the connection list during this call!
Remarks
This notification is activated by using Pipe_RegisterNotificationHandler.