This function is part of the P2P Interface.
Remarks
Listen for when a previously opened connection is interrupted. The connection will automatically attempt to reestablish, but it may not be successful. If a connection reconnects, it will trigger the P2P PeerConnectionEstablished notification with the EOS_CET_Reconnection connection type. If a connection fails to reconnect, it will trigger the P2P PeerConnectionClosed notification.
Return Value
A valid notification ID if successfully bound, or EOS_INVALID_NOTIFICATIONID otherwise
See Also
EOS_P2P_AddNotifyPeerConnectionEstablished, EOS_P2P_AddNotifyPeerConnectionClosed, EOS_P2P_RemoveNotifyPeerConnectionInterrupted
Parameters
EOS_P2P_AddNotifyPeerConnectionInterrupted
Parameter Type And Name | Usage Information |
---|---|
EOS_HP2P Handle | |
const EOS_P2P_AddNotifyPeerConnectionInterruptedOptions* Options | Information about who would like notifications about interrupted connections, and for which socket |
void* ClientData | This value is returned to the caller when ConnectionInterruptedHandler is invoked |
EOS_P2P_OnPeerConnectionInterruptedCallback ConnectionInterruptedHandler | The callback to be fired when an open connection has been interrupted |
Callback Function Information
Because this function is asynchronous, it employs a callback of type EOS_P2P_OnPeerConnectionInterruptedCallback to report the results of its operation.
Callback Remarks
Callback for information related to open connections that are interrupted.
Callback Parameters
EOS_P2P_OnPeerConnectionInterruptedCallback
Parameter Type And Name | Usage Information |
---|---|
const EOS_P2P_OnPeerConnectionInterruptedInfo* Data |