This function is part of the P2P Interface.
Listen for when a previously opened connection is closed.
Return Value
A valid notification ID if successfully bound, or EOS_INVALID_NOTIFICATIONID otherwise
Parameters
EOS_P2P_AddNotifyPeerConnectionClosed
Parameter Type And Name
|
Usage Information
|
EOS_HP2P Handle
|
|
const EOS_P2P_AddNotifyPeerConnectionClosedOptions* Options
|
Information about who would like notifications about closed connections, and for which socket
|
void* ClientData
|
This value is returned to the caller when ConnectionClosedHandler is invoked
|
EOS_P2P_OnRemoteConnectionClosedCallback ConnectionClosedHandler
|
The callback to be fired when we an open connection has been closed
|
This function enables your callback (the ConnectionClosedHandler
parameter) to respond to events that happen on the back-end service. Remember to remove your callback function when it is no longer needed.
Because this function is asynchronous, it employs a callback of type EOS_P2P_OnRemoteConnectionClosedCallback to report the results of its operation.
Callback for information related to open connections being closed.
Callback Parameters
EOS_P2P_OnRemoteConnectionClosedCallback
This function is part of the P2P Interface.
Listen for when a previously opened connection is closed.
Return Value
A valid notification ID if successfully bound, or EOS_INVALID_NOTIFICATIONID otherwise
Parameters
P2P.P2PInterface.AddNotifyPeerConnectionClosed
Parameter Type And Name
|
Usage Information
|
AddNotifyPeerConnectionClosedOptions options
|
Information about who would like notifications about closed connections, and for which socket
|
object clientData
|
This value is returned to the caller when ConnectionClosedHandler is invoked
|
OnRemoteConnectionClosedCallback connectionClosedHandler
|
The callback to be fired when we an open connection has been closed
|
This function enables your callback (the ConnectionClosedHandler
parameter) to respond to events that happen on the back-end service. Remember to remove your callback function when it is no longer needed.
Because this function is asynchronous, it employs a callback of type EOS_P2P_OnRemoteConnectionClosedCallback to report the results of its operation.
Callback for information related to open connections being closed.
Callback Parameters
P2P.OnRemoteConnectionClosedCallback
Parameter Type And Name
|
Usage Information
|
OnRemoteConnectionClosedInfo data
|
|
Was this document useful?
Thank you for the response!
You’ve marked this document as useful:
yes
You’ve marked this document as not useful:
no