EOS_P2P_AddNotifyPeerConnectionClosed

EOS API reference page for EOS_P2P_AddNotifyPeerConnectionClosed

2 分で読めます

This function is part of the P2P Interface.

Remarks

Listen for when a previously opened connection is closed.

Return Value

A valid notification ID if successfully bound, or EOS_INVALID_NOTIFICATIONID otherwise

See Also

EOS_P2P_AddNotifyPeerConnectionEstablished, EOS_P2P_AddNotifyPeerConnectionInterrupted, EOS_P2P_RemoveNotifyPeerConnectionClosed

Parameters

EOS_P2P_AddNotifyPeerConnectionClosed

Parameter Type And NameUsage Information
EOS_HP2P Handle
const EOS_P2P_AddNotifyPeerConnectionClosedOptions* OptionsInformation about who would like notifications about closed connections, and for which socket
void* ClientDataThis value is returned to the caller when ConnectionClosedHandler is invoked
EOS_P2P_OnRemoteConnectionClosedCallback ConnectionClosedHandlerThe callback to be fired when an open connection has been closed

Callback Function Information

Because this function is asynchronous, it employs a callback of type EOS_P2P_OnRemoteConnectionClosedCallback to report the results of its operation.

Callback Remarks

Callback for information related to open connections being closed.

Callback Parameters

EOS_P2P_OnRemoteConnectionClosedCallback

Parameter Type And NameUsage Information
const EOS_P2P_OnRemoteConnectionClosedInfo* Data